Get Started
Form
Components
- Accordion
- Alert
- Alert Dialog
- Badge
- Breadcrumbs
- Button Group
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- File Field
- Hover Card
- Kbd
- Menubar
- Navigation Menu
- Number Field
- OTP Field
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Search
- Segmented Control
- Select
- Separator
- Sidebar
- Skeleton
- Slider
- Sonner
- Switch
- Table
- Tabs
- Text Field
- Toggle Group
- Toggle Button
- Tooltip
Component calendar-demo not found in registry.
Installation
Copy and paste the following code into your project:
Usage
import {
Calendar,
CalendarCell,
CalendarCellTrigger,
CalendarHeadCell,
CalendarLabel,
CalendarNav,
CalendarTable,
} from "@components/ui/calendar"<Calendar mode="single">
{(props) => (
<>
<CalendarNav action="prev-month" />
<CalendarLabel />
<CalendarNav action="next-month" />
<CalendarTable>
<thead>
<tr class="flex">
<Index each={props.weekdays}>
{(weekday) => <CalendarHeadCell />}
</Index>
</tr>
</thead>
<tbody>
<Index each={props.weeks}>
{(week) => (
<tr>
<Index each={week()}>
{(day) => (
<CalendarCell>
<CalendarCellTrigger day={day()} />
</CalendarCell>
)}
</Index>
</tr>
)}
</Index>
</tbody>
</CalendarTable>
</>
)}
</Calendar>Examples
Range Calendar
Component calendar-range-demo not found in registry.