UNPKG

xlibs-components

Version:

Modern React component library with Aceternity, MagicUI, and ShadCN components for building beautiful web applications

12 lines (11 loc) 721 B
"use client"; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import * as React from "react"; import { Calendar } from '../../components/ui/calendar.js'; export function Calendar06() { const [dateRange, setDateRange] = React.useState({ from: new Date(2025, 5, 12), to: new Date(2025, 5, 26), }); return (_jsxs("div", { className: "flex min-w-0 flex-col gap-2", children: [_jsx(Calendar, { mode: "range", defaultMonth: dateRange?.from, selected: dateRange, onSelect: setDateRange, numberOfMonths: 1, min: 5, className: "rounded-lg border shadow-sm" }), _jsx("div", { className: "text-muted-foreground text-center text-xs", children: "A minimum of 5 days is required" })] })); }