Skip to content
OTF Kit logoOTF Kit

Object Field

Input

Nested object form section with grouped fields and collapsible state.

View in Storybook
Object Field
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.

PropTypeDefaultDescription
childrenrequiredReactNode
titlerequiredstring
classNamestring
collapsiblebooleanfalse
defaultOpenbooleantrue
descriptionstring

Related