Skip to Content
🎉Introducing Pumki UI
ComponentsFormText Field

Text Field

Pumki UIPumki UI

Installation

Usage


import { Input, TextField, Label } from '@/components/pumki-ui/form/textfield.tsx';

<Textfield />

Props

PropTypeDefaultDescription
labelstringThe label for the field, displayed above the input or textarea.
descriptionstringOptional description text shown below the input or textarea.
errorMessagestring | ((validation: ValidationResult) => string)Error message to display below the field, or a function returning a message based on validation.
textAreabooleanfalseIf true, renders a textarea instead of an input.
Last updated on