# Label **Category**: react **URL**: https://www.heroui.com/docs/react/components/label **Source**: https://raw.githubusercontent.com/heroui-inc/heroui/refs/heads/v3/apps/docs/content/docs/react/components/(forms)/label.mdx > Renders an accessible label associated with form controls *** ## Import ```tsx import { Label } from '@heroui/react'; ``` ## Usage ```tsx import {Input, Label} from "@heroui/react"; export function Basic() { return (
); } ``` ## Related Components - **Input**: Single-line text input built on React Aria - **TextArea**: Multiline text input with focus management - **Fieldset**: Group related form controls with legends ## API ### Label Props | Prop | Type | Default | Description | |------|------|---------|-------------| | `htmlFor` | `string` | - | The id of the element the label is associated with | | `isRequired` | `boolean` | `false` | Whether to display a required indicator | | `isDisabled` | `boolean` | `false` | Whether the label is in a disabled state | | `isInvalid` | `boolean` | `false` | Whether the label is in an invalid state | | `className` | `string` | - | Additional CSS classes | | `children` | `ReactNode` | - | The content of the label | ## Accessibility The Label component is built on the native HTML `