Skip to main content
Glama
deleonio
by deleonio
reset.tsx719 B
import { KolButton, KolInputDate } from '@public-ui/react-v19'; import React, { useRef } from 'react'; import { SampleDescription } from '../SampleDescription'; export const InputDateReset = () => { const dateRef = useRef<HTMLKolInputDateElement>(null); return ( <> <SampleDescription> <p> This sample demonstrates the KolInputDate <code>reset</code>-Method, which can be used to clear the field, even when it holds incomplete or invalid values. </p> </SampleDescription> <KolInputDate className="w-full" ref={dateRef} _label="Resettable Input Date" _value="2024-02-10" /> <KolButton className="mt" _label={'Reset'} _on={{ onClick: () => dateRef.current?.reset() }} /> </> ); };

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