Skip to main content
Glama
deleonio
by deleonio
basic.tsx1.67 kB
import type { FC } from 'react'; import React from 'react'; import { KolLink } from '@public-ui/react-v19'; import { SampleDescription } from '../SampleDescription'; export const LinkBasic: FC = () => ( <> <SampleDescription> <p> KolLink renders a link. This sample shows disabled links, links with hidden label, the boolean _inline property and links with different CSS{' '} <code>display</code>-properties. </p> </SampleDescription> <div className="grid gap-4"> <KolLink _href="#/back-page" _inline={false} _label="Simple Link" /> <KolLink _disabled _href="#/back-page" _inline={false} _label="Simple Link (disabled)" /> <KolLink _hideLabel _icons="codicon codicon-home" _href="#/back-page" _inline={false} _label="Icon Link" /> <KolLink _disabled _hideLabel _icons="codicon codicon-home" _href="#/back-page" _inline={false} _label="Icon Link (disabled)" /> <p> In this paragraph, a link is inserted that contains no additional attributes. <KolLink _href="#/back-page" _label="Simple Link" /> It is rendered by default as a <strong>inline element</strong>. </p> <p> In this paragraph, a link is inserted that is rendered as an inline-block element.{' '} <KolLink class="d-inline-block" _accessKey="S" _href="#/back-page" _label="Simple Link" />. This allows you to assign width, height, and other properties to it using CSS styles. <br /> <br /> After that, there is a link that is rendered as a block element. <KolLink class="d-block" _href="#/back-page" _label="Simple Link" />, therefore, I span the entire width of the parent element, causing a line break. </p> </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