Field
A label that starts in the field and sits on the border when you type. TextField and TextArea.
Install
npx @neelshha/ui@latest init
npx @neelshha/ui@latest add fieldPlaceholder
The name is gone the moment you type.
Error
A sentence under the field. Height is reserved so the form does not jump.
API
| Prop | Type | Notes |
|---|---|---|
label | ReactNode | Required. The name of the field. |
chrome | "float" | "placeholder" | Float keeps the name. Placeholder drops it when you type. |
optional | boolean | Renders an Optional mark on the label. |
description | ReactNode | Help under the field. Hidden when error is set. |
error | ReactNode | A sentence. The field height does not jump. |
disabled | boolean | Dashed border. Native disabled. |
readOnly | boolean | Dotted border. Native readOnly. |