Skip to main content
Glama
deleonio
by deleonio
cases.tsx2.45 kB
import React, { forwardRef } from 'react'; import { KolInputRadio } from '@public-ui/react-v19'; import { ERROR_MSG, HINT_MSG } from '../../../shares/constants'; import type { Components } from '@public-ui/components'; export const InputRadioCases = forwardRef<HTMLKolInputRadioElement, Components.KolInputRadio>(function InputRadioCases(props, ref) { return ( <div className="grid gap-4"> <div className="black-background"> <KolInputRadio {...props} _options="[{'disabled':true,'label':'Mrs. (disabled)','value':'Mrs.'},{'label':'Mr.'},{'label':'Company','value':'Company'}]" _label="Salutation (Black background test)" /> </div> <KolInputRadio {...props} _required _msg={{ _type: 'error', _description: ERROR_MSG }} _touched _value="Company" _options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]" _label="Salutation (with error)" /> <KolInputRadio {...props} ref={ref} _orientation="horizontal" _required _value="Company" _options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]" _label="Salutation (horizontal)" /> <KolInputRadio {...props} _disabled _orientation="horizontal" _required _msg={{ _type: 'error', _description: ERROR_MSG }} _touched _value="Company" _options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]" _label="Salutation (horizontal with error)" /> <KolInputRadio {...props} _disabled _value="Company" _options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]" _label="Salutation" _touched /> <KolInputRadio {...props} _orientation="horizontal" _required _msg={{ _type: 'error', _description: ERROR_MSG }} _touched _value="Company" _options={[ { label: 'Mrs.', value: 'Mrs.', hint: 'Description for option "Mrs."' }, { label: 'Mr. (disabled)', value: 'Mr.', hint: 'Description for option "Mr."', disabled: true }, { label: 'Company', value: 'Company', hint: 'Description for option "Company"' }, ]} _label="Salutation (horizontal with error hint and description)" _hint={HINT_MSG} /> </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