Skip to main content
Glama
deleonio
by deleonio
aria-description.tsx1.21 kB
import { KolButton, KolHeading } from '@public-ui/react-v19'; import type { FC } from 'react'; import React from 'react'; import { useToasterService } from '../../hooks/useToasterService'; import { SampleDescription } from '../SampleDescription'; export const ButtonAriaDescription: FC = () => { const { dummyClickEventHandler } = useToasterService(); const dummyEventHandler = { onClick: dummyClickEventHandler, }; return ( <> <SampleDescription> <p> This story demonstrates buttons with ARIA descriptions. The aria-description attribute provides additional descriptive text for screen readers, helping users understand the button&apos;s purpose or action in more detail. </p> </SampleDescription> <div className="grid gap-8"> <section className="grid gap-4"> <KolHeading _level={2} _label="Buttons with and without ARIA Description" /> <div className="flex flex-wrap gap-4"> <KolButton _label="Button without ARIA description" _on={dummyEventHandler} /> <KolButton _label="Button with ARIA description" _ariaDescription="This button performs an important action" _on={dummyEventHandler} /> </div> </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