Skip to main content

Calendar

Usage

شهریور ۱۴۰۵
import Calendar from "@repo/ui/Calendar";

const [selected, setSelected] = useState<Date>();

<Calendar mode="single" selected={selected} onSelect={setSelected} />;

Installation

npx the-dig@latest add IconButton,Calendar

Props

All react-day-picker/persian DayPicker props are forwarded. The wrapper defaults captionLayout to "label"; consumer classNames and components entries override the wrapper defaults. See the upstream DayPicker API for selection modes, disabled dates, and navigation props.

PropTypeDefault
classNamestring-

React Day Picker Document