Arctic Design
Get StartedFoundationsComponentsExamples
K

Calendar

Displays dates in a structured format, allowing users to view, select, and interact with specific days.

Usage
December 2024
Sun
Mon
Tue
Wed
Thu
Fri
Sat
import { useState } from 'react';
import { Calendar } from '@arctic-kit/snow';
function Demo() {
const [value, setValue] = useState(new Date());
return <Calendar selected={value} onSelect={setValue} color="primary" />;
}

API Reference

PropsTypeDefault
classNamestring | undefined---
colorSnowColor---
hasBorderboolean | undefinedtrue
maxDateDate | undefined---
minDateDate | undefined---
onMonthChange((month: number) => void) | undefined---
onSelect(date: Date) => void---
onYearChange((year: number) => void) | undefined---
selectedDate | undefined---
styleCSSProperties | undefined---