Object Field
InputNested object form section with grouped fields and collapsible state.
Object FieldInput · Web
Loading Storybook preview…
Installation
bun add @otfdashkit/ui
Usage
Import Object Field from @otfdashkit/ui.
Code
// Object Field — Nested object form section with grouped fields and collapsible state.
//
// Install:
// bun add @otfdashkit/ui
import { ObjectField } from '@otfdashkit/ui'
export function Example() {
return (
<ObjectField>
{/* your content */}
</ObjectField>
)
}Props
Props declared in the ObjectField source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| childrenrequired | ReactNode | ||
| titlerequired | string | ||
| className | string | ||
| collapsible | boolean | false | |
| defaultOpen | boolean | true | |
| description | string |