Components

Calendar

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

Loading...

Installation

NPM packages are currently unstable and may cause issues. Use it at your own risk.
npm install @mijn-ui/react-calendar

Usage

import { Calendar } from "@mijn-ui/react-calendar"
const [date, setDate] = React.useState<Date | undefined>(new Date())

return (
  <Calendar
    mode="single"
    selected={date}
    onSelect={setDate}
    className="rounded-md border"
  />
)

On this page