Skip to main content
Glama
deleonio
by deleonio
pagination-position.tsx2.1 kB
import type { FC } from 'react'; import React from 'react'; import { KolHeading, KolTableStateful } from '@public-ui/react-v19'; import { SampleDescription } from '../SampleDescription'; import { DATE_FORMATTER } from './formatter'; import type { Data } from './test-data'; import { DATA } from './test-data'; import type { KoliBriTableHeaders, KoliBriTablePaginationProps } from '@public-ui/components'; const HEADERS: KoliBriTableHeaders = { horizontal: [ [ { label: 'Order', key: 'order' }, { label: 'Date', key: 'date', render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as unknown as Data).date) }, ], ], }; const PAGINATION: KoliBriTablePaginationProps = { _page: 2 }; export const PaginationPosition: FC = () => ( <div className="w-full grid gap-14"> <SampleDescription> <p>This sample shows KolTableStateful with different pagination positions.</p> </SampleDescription> <section className="w-full flex flex-col gap-14"> <section className="grid gap-4"> <KolHeading _level={2} _label="Table with pagination at the bottom."></KolHeading> <KolTableStateful _label="Sample table with pagination at the bottom" _minWidth="auto" _data={DATA} _headers={HEADERS} _pagination={PAGINATION} _paginationPosition="bottom" ></KolTableStateful> </section> <section className="grid gap-4"> <KolHeading _level={2} _label="Table with pagination at the top."></KolHeading> <KolTableStateful _label="Sample table with pagination at the top" _minWidth="auto" _data={DATA} _headers={HEADERS} _pagination={PAGINATION} _paginationPosition="top" ></KolTableStateful> </section> <section className="grid gap-4"> <KolHeading _level={2} _label="Table with pagination at both top and bottom."></KolHeading> <KolTableStateful _label="Sample table with pagination at both top and bottom" _minWidth="auto" _data={DATA} _headers={HEADERS} _pagination={PAGINATION} _paginationPosition="both" ></KolTableStateful> </section> </section> </div> );

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