18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
|
import { useState } from "react";
|
||
|
|
||
|
import DatePicker from "@calcom/ui/v2/booker/DatePicker";
|
||
|
|
||
|
export default {
|
||
|
title: "Datepicker",
|
||
|
component: DatePicker,
|
||
|
};
|
||
|
|
||
|
export const Default = () => {
|
||
|
const [selected, setSelected] = useState<Date | undefined>(undefined);
|
||
|
return (
|
||
|
<div style={{ width: "455px" }}>
|
||
|
<DatePicker selected={selected} onChange={setSelected} locale="en" />
|
||
|
</div>
|
||
|
);
|
||
|
};
|