APIDemo

Tabs

Tabs help you structure the input fields in the admin panel. Tabs do not hold data, but can declare underlying fields which do (or even more tabs).

tabs(
  tab('Tab A', {
    // ... fields
  }),
  tab('Tab B', {
    // ... fields
  })
)

Types

/**
Create tabs configuration */
export function tabs<T extends Array<TypeConfig<any>>>(
types: T
): Section<UnionToIntersection<Type.Of<T[number]>>>
/**
Create a tab configuration */
export function tab<T extends Array<Input<any>>>(
label: Label,
sections: T
): TypeConfig<Section.FieldsOf<T[number]>>