Carregando…
Carregando…
Carregando…Accessible form field wrapper with label, hint and error message slots.
$ npx kikitocn add form-fieldimport { FormField } from "@/components/ui/cn/form-field/FormField";
export function FormFieldExample() {
return (
<FormField>
Form Field
</FormField>
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
children* | React.ReactNode | — | Campo de entrada filho |
label | string | — | Label do campo |
hint | string | — | Texto de ajuda |
errorMessage | string | — | Mensagem de erro |
required | boolean | false | Exibir asterisco de obrigatório |
htmlFor | string | — | ID do input associado |
className | string | — | Classes CSS extras |
Label + hint
We'll never share your email.
Required
Error message
Password must be at least 8 characters.