Skip to main content
Glama
deleonio
by deleonio
cases.tsx1.83 kB
import type { Components } from '@public-ui/components'; import { KolInputDate } from '@public-ui/react-v19'; import React, { forwardRef } from 'react'; import { ERROR_MSG, HINT_MSG } from '../../../shares/constants'; export const InputDateCases = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateCases(props, ref) { return ( <div className="grid gap-4"> <div className="black-background"> <KolInputDate {...props} _type="date" _label="Date input (Black background test)" _required /> </div> <KolInputDate {...props} _type="datetime-local" _label="Local-Datetime (Standard)" _required /> <KolInputDate {...props} _step={1} _type="datetime-local" _hint={HINT_MSG} _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Local datetime (with seconds)" _required _touched /> <KolInputDate {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Color" /> <KolInputDate {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Color" /> <KolInputDate {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Color" /> <KolInputDate {...props} _type="month" _label="Month" _required /> <KolInputDate {...props} ref={ref} _accessKey="W" _type="week" _label="Week" _required /> <KolInputDate {...props} _type="time" _label="Time (standard)" _required /> <KolInputDate {...props} _step={1} _type="time" _label="Time (with seconds)" _required /> <KolInputDate {...props} _readOnly _label="Date input (read-only)" _required /> <KolInputDate {...props} _disabled _label="Date input (Disabled)" _required /> <KolInputDate {...props} _label="With access key" _accessKey="s" /> <KolInputDate {...props} _label="With short key" _shortKey="s" /> </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