bigbuffet-rw/app/soapbox/components/ui/checkbox/checkbox.tsx

17 lines
465 B
TypeScript
Raw Normal View History

2022-05-09 06:52:41 -07:00
import React from 'react';
interface ICheckbox extends Pick<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'id' | 'name' | 'onChange' | 'checked' | 'required'> { }
const Checkbox = React.forwardRef<HTMLInputElement, ICheckbox>((props, ref) => {
return (
<input
{...props}
ref={ref}
type='checkbox'
className='focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded'
/>
);
});
export default Checkbox;