Install Breeze
This commit is contained in:
17
resources/js/Components/Checkbox.tsx
Normal file
17
resources/js/Components/Checkbox.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
import { InputHTMLAttributes } from 'react';
|
||||
|
||||
export default function Checkbox({
|
||||
className = '',
|
||||
...props
|
||||
}: InputHTMLAttributes<HTMLInputElement>) {
|
||||
return (
|
||||
<input
|
||||
{...props}
|
||||
type="checkbox"
|
||||
className={
|
||||
'rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500 ' +
|
||||
className
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user