Skip to main content
⚠️ AppKit is in an early development phase and is subject to change without notice. DO NOT use in production environments.

# Label

Text label associated with form controls

## Example​

    import { Checkbox, Label } from "@databricks/appkit-ui/react"

    export default function LabelExample() {
      return (
        <div>
          <div className="flex items-center space-x-2">
            <Checkbox id="terms" />
            <Label htmlFor="terms">Accept terms and conditions</Label>
          </div>
        </div>
      )
    }

## Label​

Text label associated with form controls

Source: `packages/appkit-ui/src/react/ui/label.tsx`

### Props​

Prop | Type | Required | Default | Description
--- | --- | --- | --- | ---
`asChild` | `boolean` |  | - | -

### Usage​

    import { Label } from '@databricks/appkit-ui';

    <Label /* props */ />