Skip to main content
Glama
deleonio
by deleonio
basic.tsx1.41 kB
import type { FC } from 'react'; import React from 'react'; import { KolTabs } from '@public-ui/react-v19'; import { SampleDescription } from '../SampleDescription'; const tabs = [ { _icons: 'codicon codicon-pie-chart', _label: 'First tab', _on: { onSelect: (event: Event) => { console.log('First tab selected', event); }, }, }, { _icons: 'codicon codicon-calendar', _label: 'Second Tab', }, { _disabled: true, _icons: 'codicon codicon-briefcase', _label: 'Disabled Tab', }, { _icons: 'codicon codicon-telescope', _label: 'Last tab', }, ]; const tabsWithoutIcons = tabs.map((tab) => ({ ...tab, _icons: undefined, })); export const TabsBasic: FC = () => ( <> <SampleDescription> <p>KolTabs renders tab captions and their associated content. This sample shows tab captions with and without icons and disabled tabs.</p> </SampleDescription> <KolTabs _tabs={tabsWithoutIcons} _label="Regular tabs"> <div slot="tab-0">Contents of Tab 1</div> <div slot="tab-1">Contents of Tab 2</div> <div slot="tab-2">Contents of Tab 3</div> <div slot="tab-3">Contents of Tab 4</div> </KolTabs> <KolTabs _tabs={tabs} className="mt-4" _label="Tabs with icons"> <div slot="tab-0">Contents of Tab 1</div> <div slot="tab-1">Contents of Tab 2</div> <div slot="tab-2">Contents of Tab 3</div> <div slot="tab-3">Contents of Tab 4</div> </KolTabs> </> );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/deleonio/public-ui-kolibri'

If you have feedback or need assistance with the MCP directory API, please join our Discord server