Skip to main content
Glama
deleonio
by deleonio
readonly.tsx882 B
import { KolInputText } from '@public-ui/react-v19'; import type { FC } from 'react'; import React from 'react'; import { SampleDescription } from '../SampleDescription'; export const InputTextReadonly: FC = () => ( <> <SampleDescription> <p>This story demonstrates the readonly state of KolInputText. Readonly inputs can be focused but not edited.</p> </SampleDescription> <div className="grid gap-4"> <KolInputText _label="Readonly with placeholder" _placeholder="Placeholder text" _readOnly /> <KolInputText _label="Readonly with value" _value="This field is readonly" _readOnly /> <KolInputText _label="Readonly with info message" _value="Read-only value" _msg={{ _type: 'info', _description: 'This field cannot be edited' }} _readOnly /> <KolInputText _label="Comparison: Editable" _value="This field is editable" /> </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