Skip to main content
Glama
deleonio
by deleonio
complex-headers.tsx1.97 kB
import { KolTableStateful } from '@public-ui/react-v19'; import type { FC } from 'react'; import React from 'react'; import { SampleDescription } from '../SampleDescription'; export const TableComplexHeaders: FC = () => ( <> <SampleDescription> <p>This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan.</p> </SampleDescription> <section className="w-full flex flex-col"> <KolTableStateful _label="Business hours" _minWidth="auto" _data={[ { asp: 'Center', monday: '08:00', tuesday: '08:00', wednesday: '10:00', thursday: '11:00', friday: '08:00', }, { asp: 'Tiergarten', monday: '08:00', tuesday: '08:00', wednesday: '10:00', thursday: '11:00', friday: '08:00', }, { asp: 'Maxvorstadt', monday: '08:00', tuesday: '08:00', wednesday: '10:00', thursday: '11:00', friday: '08:00', }, ]} _headers={{ vertical: [ [ { label: 'Berlin', rowSpan: 2, }, { label: 'München', }, ], ], horizontal: [ [ { label: 'District', rowSpan: 2, key: 'asp', }, { label: 'Workdays', colSpan: 5, }, { label: 'Weekend', colSpan: 2, }, ], [ { label: 'Monday', key: 'monday', }, { label: 'Tuesday', key: 'tuesday', }, { label: 'Wednesday', key: 'wednesday', }, { label: 'Thursday', key: 'thursday', }, { label: 'Friday', key: 'friday', }, { label: 'Saturday', key: 'saturday', }, { label: 'Sunday', key: 'sunday', }, ], ], }} /> </section> </> );

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