This repository has been archived on 2025-05-09. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Astral-nook/resources/scripts/components/elements/inputs/Checkbox.tsx
2022-07-02 18:27:29 -04:00

14 lines
433 B
TypeScript

import React, { forwardRef } from 'react';
import classNames from 'classnames';
import styles from './styles.module.css';
type Props = Omit<React.ComponentProps<'input'>, 'type'>;
export default forwardRef<HTMLInputElement, Props>(({ className, ...props }, ref) => (
<input
ref={ref}
type={'checkbox'}
className={classNames('form-input', styles.checkbox_input, className)}
{...props}
/>
));