--- title: Label description: Renders an accessible label associated with controls. --- ## Installation CLI Manual ```bash npx shadcn@latest add @coss/label ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Label } from "@/components/ui/label" ``` ```tsx ``` ## API Reference This is a custom component using Base UI's `useRender` hook, not a direct Base UI wrapper. ### Label A label component that can be rendered as different elements. | Prop | Type | Default | Description | | -------- | ---------------------- | ------- | ------------------------------------------------ | | `render` | `React.ReactElement` | - | Render as a different element | ## Examples For accessible labelling and validation, prefer using the `FieldLabel` component. See some [related examples](/ui/docs/components/field). ### With Checkbox