In Review

Label

Variants

Default

The Label component is used to associate a text label with a form input element, helping improve accessibility and user experience. The size prop allows you to adjust the label size based on the form's design requirements.

<label
  for="input-id"
  class="gi-text-md gi-mb-1 gi-block">
  Label Text
</label>
{{ govieLabel({
  "content": "Label Text",
  "size": "md",
  "for": "input-id"
}) }}
import { Label } from "@govie-ds/react";

<Label
  htmlFor="input-id"
  size="md"
  text="Label"
/>

Usage

Best Practices

When to Use This Component

When Not to Use This Component

Status

Figma Library
Considering
Local HTML
Stable
Global HTML
Stable
Global React
Stable