Components

Calendar


December 2024
SuMoTuWeThFrSa

Installation

NPM packages are currently unstable and may cause issues. Use it at your own risk.

npm install @mijn-ui/react-calendar

Example Usage

calendar-example.tsx
"use client"
 
import * as React from "react"
import { Calendar } from "@mijn-ui/react-calendar"
 
const CalendarExample = () => {
  const [date, setDate] = React.useState<Date | undefined>(new Date())
 
  return (
    <Calendar
      mode="single"
      selected={date}
      onSelect={setDate}
      className="rounded-lg border"
    />
  )
}
 
export default CalendarExample

On this page