About
An Astryx month-grid calendar for selecting a single date with surrounding dates visible for context.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Calendar to your project and fits it to your theme.
Code
How Astryx Calendar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import {useState} from 'react';
import {Calendar, type DateRange} from '@/components/ui/astryx-calendar';
import {Stack} from '@astryxdesign/core/Layout';
import {Text} from '@astryxdesign/core/Text';
function CalendarTwoMonths() {
const [value, setValue] = useState<DateRange>({
start: '2026-01-25',
end: '2026-02-05',
});
return (
<Stack direction="vertical" gap={4} hAlign="center">
<Text type="supporting" color="secondary">
{value.start && value.end
? `${value.start} → ${value.end}`
: 'Pick a date range'}
</Text>
<Calendar
mode="range"
numberOfMonths={2}
value={value}
onChange={range => setValue(range)}
focusDate="2026-01-01"
/>
</Stack>
);
}
export default function CalendarTwoMonthsDemo() {
return (
<div
data-astryx-theme="neutral"
data-theme="light"
style={{colorScheme: 'light', display: 'contents'}}>
<CalendarTwoMonths />
</div>
);
}














