import type { FC } from 'react';
import React from 'react';
import { KolTabs } from '@public-ui/react-v19';
import { SampleDescription } from '../SampleDescription';
const tabs = [
{
_icons: 'kolicon-check',
_label: 'First tab',
_on: {
onSelect: (event: Event) => {
console.log('First tab selected', event);
},
},
},
{
_icons: 'kolicon-link-external',
_label: 'Second Tab',
},
{
_disabled: true,
_icons: 'kolicon-house',
_label: 'Disabled Tab',
},
{
_icons: 'kolicon-eye',
_label: 'Last tab',
},
];
export const TabsIconsOnly: FC = () => (
<>
<SampleDescription>
<p>This sample shows KolTabs with hidden labels.</p>
</SampleDescription>
<KolTabs _label="Tabs with icons" _tabs={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>
</>
);