Label

The Label component is a simple styled wrapper around the native HTML label element.

The Label component is a simple styled wrapper around the native HTML label element.

Usage

Use the Label component to wrap a form input element. The htmlFor prop is used to associate the label with the input element.

import { Label } from '~/core/ui/Label'; const MyComponent = () => ( <Label htmlFor="my-input">My Label</Label> );

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