Skip to content

Function: Tabs()

ts
function Tabs(props: UiTabsProps): Block;

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

Experimental

Tabs — switch between related content panels in a bounded section.

Parameters

ParameterType
propsUiTabsProps

Returns

Block

Example

ts
Tabs({
  defaultValue: 'overview',
  items: [
    {value: 'overview', label: 'Overview', content: 'Overview panel'},
    {value: 'activity', label: 'Activity', content: 'Activity panel'},
    {value: 'settings', label: 'Settings', content: 'Settings panel'},
  ],
});

Matterway Assistant SDK Documentation