Field
InputLabel + input + helper / error wrapper — the building block for every form row.
FieldInput · Web
Loading Storybook preview…
Installation
bun add @otfdashkit/ui
Usage
Import Field from @otfdashkit/ui.
Code
// Field — Label + input + helper / error wrapper — the building block for every form row.
//
// Install:
// bun add @otfdashkit/ui
import { Field } from '@otfdashkit/ui'
export function Example() {
return (
<Field>
{/* your content */}
</Field>
)
}Props
Props declared in the Field source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| childrenrequired | ReactNode | ||
| className | string | ||
| description | string | ||
| error | string | ||
| label | string | ||
| required | boolean |