Skip to main content
Glama
deleonio
by deleonio
basic.tsx1.48 kB
import type { ToolbarItemsPropType } from '@public-ui/components'; import { KolHeading, KolToolbar } from '@public-ui/react-v19'; import type { FC } from 'react'; import React from 'react'; import { SampleDescription } from '../SampleDescription'; export const ToolbarBasic: FC = () => { const TOOLBAR_ITEMS: ToolbarItemsPropType = [ { type: 'button', _label: 'Back', _hideLabel: true, _icons: { left: { icon: 'codicon codicon-arrow-left', }, }, }, { type: 'button', _label: 'Next', _hideLabel: true, _icons: { right: { icon: 'codicon codicon-arrow-right', }, }, }, { type: 'link', _href: '#/back-page', _label: 'Simple Link 1', }, { type: 'link', _href: '#/back-page', _label: 'Simple Link 3', }, { type: 'button', _label: 'Bold', }, ]; return ( <> <SampleDescription> <p> KolToolbars renders a set of given control elements grouped into one toolbar where focus can be moved using the keyboard arrow keys. The sample features button and link elements. </p> </SampleDescription> <div className="flex flex-col gap-4"> <KolHeading _label="Orientation horizontal" _level={2} /> <KolToolbar class="block w-fit" _label="Toolbar" _items={TOOLBAR_ITEMS} /> <KolHeading _label="Orientation vertical" _level={2} /> <KolToolbar class="block w-fit" _label="Toolbar" _items={TOOLBAR_ITEMS} _orientation="vertical" /> </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