Component referenceSource owned

Calendar

A date field component that allows users to enter and edit date.

Upstream reference
On this page4 sectionsBack to top
Live preview
Loading preview...

#Installation

npx shadcn@latest add https://neobrutal-ui.andongmin.com/r/calendar.json

#Usage

import { useState } from "react";

import { Calendar } from "@/components/ui/calendar";
const [date, setDate] = useState<Date | undefined>(new Date());
<Calendar mode="single" selected={date} onSelect={setDate} />

#Examples

#Range

Loading preview...