mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
* fix(docs): imports missing in DatePicker * fix(docs): imported cn in presets * fix(docs): missing imports in Preset(TS) --------- Co-authored-by: shrinidhi.upadhyaya <shrinidhiupadhyaya1195@gmail.com>
25 lines
497 B
TypeScript
25 lines
497 B
TypeScript
const App = `import {DatePicker} from "@nextui-org/react";
|
|
import {now, getLocalTimeZone} from "@internationalized/date";
|
|
|
|
export default function App() {
|
|
return (
|
|
<div className="w-full max-w-xl flex flex-row gap-4">
|
|
<DatePicker
|
|
label="Event Date"
|
|
variant="bordered"
|
|
hideTimeZone
|
|
showMonthAndYearPickers
|
|
defaultValue={now(getLocalTimeZone())}
|
|
/>
|
|
</div>
|
|
);
|
|
}`;
|
|
|
|
const react = {
|
|
"/App.jsx": App,
|
|
};
|
|
|
|
export default {
|
|
...react,
|
|
};
|