Returns Calendar

Composable monthly returns calendar with Grid and Tooltip parts, controlled month or year selections, and compounded totals. Supply your own years and monthly percentages.

Preview

JFMAMJJASONDYear
’21
’22
’23
’24
’25

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/returns-calendar

API Reference

ReturnsCalendar

years?
{}

Row labels, one per row of `returns`.

returns?
{}

`returns[year][month]` in percent, twelve months per row.

className?
string
selection?
ReturnsCalendarSelection | null
defaultSelection?
ReturnsCalendarSelection | null
onSelectionChange?
((selection: ReturnsCalendarSelection | null) => void)

ReturnsCalendarGrid

className?
string

ReturnsCalendarTooltip

className?
string

Contributed by

Savva

Updated