Checkbox

The Checkbox component is a simple wrapper around the HTML input[checkbox] element.

Use the Checkbox component to render a checkbox input:

import { Checkbox } from '~/core/ui/Checkbox'; import { Label } from '~/core/ui/Label'; <div className="flex flex-col space-y-4"> <Label className='flex space-x-2 items-center'> <Checkbox /> Remember Me </Label> <Label className='flex space-x-2 items-center'> <Checkbox /> I accept the terms and conditions </Label> </div>

Subscribe to our Newsletter
Get the latest updates about React, Remix, Next.js, Firebase, Supabase and Tailwind CSS