# Label

> A form label with required and disabled states.

- Category: [Text & media](https://tarve.dev/docs.md#text-media)
- Import: `import { Label } from "@tarve/core";`
- Props type: `LabelProps`
- Source: [packages/core/src/form-controls.ts:98](https://github.com/omarcosr/tarve/blob/main/packages/core/src/form-controls.ts#L98)

## Usage

```tsx title="Label.tsx"
import { Column, Input, Label } from "@tarve/core";

<Column gap={6}>
  <Label required>Email</Label>
  <Input type="email" placeholder="you@example.com" />
</Column>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `disabled` | `boolean` | — |  |
| `onClick` | `() => void` | — |  |
| `required` | `boolean` | — |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

Previous: [Link](https://tarve.dev/docs/components/Link.md) · Next: [Kbd](https://tarve.dev/docs/components/Kbd.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Label · Index for agents: https://tarve.dev/llms.txt
