Command Palette

Search for a command to run...

Docs
Origami Fold Out Calendar

Origami Fold Out Calendar

An accordion-style calendar that folds out to reveal events for each day of the month

Loading...

Installation

Props

PropTypeDefaultDescription
initialEventsEventItem[][]Array of initial events
onEventsChange(events: EventItem[]) => void-Callback when events change
showAddFormbooleantrueWhether to show the add form

Usage

import {
  OrigamiFoldOutCalendar,
  EventItem,
} from "@/components/ui/origami-fold-out-calendar";
 
const events: EventItem[] = [
  {
    id: 1,
    title: "Team Meeting",
    date: new Date(),
  },
];
 
function MyCalendar() {
  const [events, setEvents] = React.useState<EventItem[]>([]);
 
  return (
    <OrigamiFoldOutCalendar initialEvents={events} onEventsChange={setEvents} />
  );
}