Skip to content

Function: SegmentedField()

ts
function SegmentedField(props: UiSegmentedFieldProps): Block;

Defined in: src/renderer/blocks/index.ts:719

Segmented control field.

Parameters

ParameterType
propsUiSegmentedFieldProps

Returns

Block

Example

ts
SegmentedField({
  name: 'status',
  label: 'Status',
  items: [
    {value: 'active', label: 'Active'},
    {value: 'inactive', label: 'Inactive'},
    {value: 'pending', label: 'Pending'},
  ],
});

Matterway Assistant SDK Documentation