UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

19 lines 1.03 kB
import { createSnapComponent } from "../../component.mjs"; const TYPE = 'DateTimePicker'; /** * A date/time picker component, which is used to create a date/time picker field. * * @param props - The props of the component. * @param props.name - The name of the date/time picker field. This is used to identify the * date/time picker field in the form data. * @param props.value - The value of the date/time picker field. * @param props.type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'. * Defaults to 'datetime'. * @param props.placeholder - The placeholder text of the date/time picker field. * @param props.disabled - Whether the date/time picker field is disabled. * @param props.disablePast - Whether to allow selection of past dates. Defaults to false. * @param props.disableFuture - Whether to allow selection of future dates. Defaults to false. * @category Components */ export const DateTimePicker = createSnapComponent(TYPE); //# sourceMappingURL=DateTimePicker.mjs.map