UNPKG

@rnwonder/solid-date-picker

Version:

A responsive, highly-customizable datepicker component for SolidJS.

17 lines (16 loc) 589 B
import { createComponent as c, mergeProps as l } from "solid-js/web"; import { DatePicker as n } from "./DatePicker/index.js"; import { createSignal as o } from "solid-js"; import { defaultSelectorProps as p } from "./SelectorTwo/index.js"; const f = (e) => { const [r, t] = o(!1), [s, a] = o(p); return c(n, l(e, { get type() { return e.type || "single"; }, handleOnChange: () => { }, setShowSelectorTwo: t, showSelectorTwo: r, setSelectorTwoProps: a, selectorTwoProps: s, get yearSelectorCount() { return e.yearSelectorCount || 20; } })); }; export { f as default };