mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
27 lines
617 B
TypeScript
27 lines
617 B
TypeScript
const App = `import {DateRangePicker} from "@nextui-org/react";
|
|
import {parseZonedDateTime} from "@internationalized/date";
|
|
|
|
export default function App() {
|
|
return (
|
|
<div className="w-full max-w-xl flex flex-row gap-4">
|
|
<DateRangePicker
|
|
label="Event duration"
|
|
hideTimeZone
|
|
visibleMonths={2}
|
|
defaultValue={{
|
|
start: parseZonedDateTime("2024-04-01T00:45[America/Los_Angeles]"),
|
|
end: parseZonedDateTime("2024-04-08T11:15[America/Los_Angeles]"),
|
|
}}
|
|
/>
|
|
</div>
|
|
);
|
|
}`;
|
|
|
|
const react = {
|
|
"/App.jsx": App,
|
|
};
|
|
|
|
export default {
|
|
...react,
|
|
};
|