keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

Document object field options

Open jossmac opened this issue 2 years ago • 0 comments

Add a section to the object field documentation detailing the options argument:

type ObjectFieldOptions = {
  label: string;
  description?: string;
}

Where usage looks like:

fields.object(
  {
    a: fields.text({ label: 'A' }),
    b: fields.text({ label: 'B' }),
  },
  {
    label: 'Group label',
    description: 'Group description',
  }
)

Relates to #641

jossmac avatar Oct 06 '23 04:10 jossmac