Text Field
Installation
Usage
import { Input, TextField, Label } from '@/components/pumki-ui/form/textfield.tsx';<Textfield />Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | The label for the field, displayed above the input or textarea. |
description | string | — | Optional description text shown below the input or textarea. |
errorMessage | string | ((validation: ValidationResult) => string) | — | Error message to display below the field, or a function returning a message based on validation. |
textArea | boolean | false | If true, renders a textarea instead of an input. |
Last updated on