class RatatuiRuby::Widgets::Calendar

Displays a monthly calendar grid.

Dates are complex. Rendering them in a grid requires calculation of leap years, month lengths, and day-of-week offsets. Use this widget to skip the boilerplate.

This widget renders a standard monthly view. It highlights the current date. It structures time.

Use it for date pickers, schedulers, or logs.

Example

Run the interactive demo from the terminal:

ruby examples/widget_calendar/app.rb