# Label

Renders an accessible label associated with controls.

Section: Components / Inputs
Page: https://ui.heyramzi.com/components/label
Import path: `@heyramzi/ui/shadcn/label`

## Import

```ts
import { Checkbox } from "@heyramzi/ui/shadcn/checkbox";
import { Label } from "@heyramzi/ui/shadcn/label";
```

## Demo

```svelte
<script lang="ts">
	import { Checkbox } from "@heyramzi/ui/shadcn/checkbox";
	import { Label } from "@heyramzi/ui/shadcn/label";
</script>

<div>
	<div class="flex items-center space-x-2">
		<Checkbox id="terms" />
		<Label for="terms">Accept terms and conditions</Label>
	</div>
</div>
```

## API

| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `ref` | `HTMLElement \| null` | `null` | bindable |
| `class` | `string` |  |  |

Every prop of `Label.Root` from `bits-ui`.
