Carregando…
Carregando…
Carregando…Accessible form label with required/optional markers, hint text and size variants.
Label — Tier 0 Primitive
This field accepts your full legal name.
$ npx kikitocn add label@/lib/utilsimport { Label } from "@/components/ui/cn/label/Label";
export function LabelExample() {
return (
<Label />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'md' | Tamanho do label |
required | boolean | false | Exibe marcador * de campo obrigatório |
optional | boolean | false | Exibe marcador (opcional) |
hint | string | undefined | Texto de apoio inline após o label |
disabled | boolean | false | Aplica estilo desabilitado ao label |
htmlFor | string | undefined | Associa o label a um input pelo id |