Skip to main content
Glama
deleonio
by deleonio
stateless.tsx1.54 kB
import { KolTableStateless } from '@public-ui/react-v19'; import type { FC } from 'react'; import React from 'react'; import { SampleDescription } from '../SampleDescription'; const DATA = [{ left: 'Left Example', center: 'Center Example', right: 'Right Example' }, {}, {}, {}]; export const TableStateless: FC = () => ( <> <SampleDescription> <p>This sample shows how KolTableStateless can be used directly, with the KolTableStateful wrapper.</p> </SampleDescription> <section className="w-full"> <KolTableStateless _label="Table for demonstration purposes" _minWidth="auto" _headerCells={{ horizontal: [ [ { key: 'left', label: 'left', textAlign: 'left', sortDirection: 'ASC' }, { key: 'center', label: 'center', textAlign: 'center', sortDirection: 'DESC' }, { key: 'right', label: 'right', textAlign: 'right', sortDirection: 'NOS' }, { key: 'nosort', label: 'no sort option' }, ], ], vertical: [ [ { key: 'vertical-left', label: 'left', textAlign: 'left', sortDirection: 'ASC' }, { key: 'vertical-center', label: 'center', textAlign: 'center', sortDirection: 'DESC' }, { key: 'vertical-right', label: 'right', textAlign: 'right', sortDirection: 'NOS' }, { key: 'vertical-nosort', label: 'no sort option' }, ], ], }} _data={DATA} className="block" style={{ maxWidth: '600px' }} _on={{ onSort: (_event, payload) => { console.log(payload); }, }} /> </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