react-comiseo-datepicker-tsq
v1.0.9
Published
This is a React Comiseo Datepicker component.
Readme
React Comiseo Datepicker
This is a React Comiseo Datepicker component.
Install
npm install react-comiseo-datepicker-tsqUsage
import { ComiseoDatePicker } from "react-comiseo-datepicker-tsq";
export function App() {
function onApply(e) {
console.log(e);
}
return (
<ComiseoDatePicker
options={{
apply: onApply,
}}
>
<button>ComiseoDatePicker</button>
</ComiseoDatePicker>
);
}Props
| Prop | Type | Default | Description |
| ------------ | ---------------------------- | ----------- | -------------------------------- |
| options | Record<string, string> | {} | Options for the datepicker |
| children | React.ReactNode | undefined | Children for the datepicker |
| defaultRange | { start: Date; end: Date } | undefined | Default range for the datepicker |
| ref | React.RefObject<any> | undefined | Ref for the datepicker |
Storybook
npm run storybook