Files
R3ap3r 3178b8f4f7 Aurora SpotiRip desktop and web app
- Spotify playlist, library, album and artist browsing with in-app playback
- Song, playlist and album downloads via spotdl with YouTube and Bandcamp fallbacks
- Electron desktop app (castLabs Widevine) with a permanent sidebar layout
- Linux and Windows packaging scripts
2026-09-25 23:20:57 -05:00

53 lines
1.3 KiB
TypeScript

"use client";
import * as React from "react";
import { DayPicker } from "react-day-picker";
import styles from "./Calendar.module.css";
export type CalendarProps = React.ComponentProps<typeof DayPicker> & {
mode: "single" | "range";
};
function Calendar({
className,
classNames,
showOutsideDays = true,
...props
}: CalendarProps) {
return (
<DayPicker
showOutsideDays={showOutsideDays}
className={`${styles.calendar} ${className ?? ""}`}
classNames={{
chevron: styles.chevron,
weekdays: styles.weekdays,
weekday: styles.weekday,
today: styles.today,
selected: styles.selected,
range_middle: styles.range_middle,
range_end: styles.range_end,
outside: styles.outside,
nav: styles.nav,
months: styles.months,
month: styles.month,
month_grid: styles.month_grid,
month_caption: styles.month_caption,
hidden: styles.hidden,
footer: styles.footer,
disabled: styles.disabled,
day: styles.day,
day_button: styles.day_button,
cell: styles.cell,
caption_label: styles.caption_label,
button_previous: styles.button_previous,
button_next: styles.button_next,
...classNames,
}}
{...props}
/>
);
}
Calendar.displayName = "Calendar";
export { Calendar };