Skip to main content
Glama
deleonio
by deleonio
basic.tsx1.01 kB
import type { FC } from 'react'; import React, { useEffect, useRef } from 'react'; import { KolSkipNav } from '@public-ui/react-v19'; import { SampleDescription } from '../SampleDescription'; export const SkipNavBasic: FC = () => { const skipNavRef = useRef<HTMLKolSkipNavElement>(null); useEffect(() => { skipNavRef.current?.kolFocus(); }, []); return ( <div className="grid gap-4"> <SampleDescription> <p>KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus.</p> <p>For testing purposes, click into the example and press the tab-key in order to focus the first link.</p> </SampleDescription> <KolSkipNav ref={skipNavRef} _label="Hidden navigation" _links={[ { _label: 'To the top', _href: '#/back-page', }, { _label: 'To the form', _href: '#/back-page', }, { _label: 'To the end', _href: '#/back-page', }, ]} ></KolSkipNav> </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