Skip to main content
Glama
deleonio
by deleonio
hide-label.tsx1.43 kB
import { KolAlert, KolInputText } from '@public-ui/react-v19'; import type { FC } from 'react'; import React from 'react'; import { SampleDescription } from '../SampleDescription'; export const InputTextHideLabel: FC = () => ( <div className="grid gap-4"> <SampleDescription> <p> This story demonstrates the <code>_hideLabel</code> feature for KolInputText. It allows hiding the label visually while keeping it accessible for screen readers. </p> </SampleDescription> <section> <KolInputText _hideLabel _label="Search" _placeholder="Search..." _type="search" /> </section> <section> <KolInputText _hideLabel _label="Email" _placeholder="Enter email" _msg={{ _type: 'error', _description: 'Invalid email format' }} _touched /> </section> <section> <fieldset className="grid md:grid-cols-2 gap-4"> <legend>Street Address</legend> <KolAlert className="col-span-2" _level={0} _type="error"> Please complete the address </KolAlert> <KolInputText _hideLabel _hideMsg _label="Street name" _placeholder="Street name" _msg={{ _type: 'error', _description: 'Please complete the address' }} _touched /> <KolInputText _hideLabel _hideMsg _label="House number" _placeholder="Number" _msg={{ _type: 'error', _description: 'Please complete the address' }} _touched /> </fieldset> </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