Calendar

A calendar component for selecting a date, a range of dates, or navigating with month and year selectors.

Installation

$npx maddex add Calendar

Single Date

Use selected and on-select when the chosen day should stay in sync with local state.

Preview

        
            
        
    

Range Calendar

Use mode="range" to collect a start and end date from the same calendar surface.

Preview

        
            
        
    

Month And Year Selector

Use caption-layout="dropdown" to switch months and years quickly, and month state when you need to track the visible month.

Preview