--- title: Quick Start id: quick-start --- # Quick Start TanStack Time exposes a headless core and framework adapters. Pick the section that matches your stack. ## Core Usage Create a calendar, add events, and read the current state. ```ts import { createCalendar, calendarFeatures, stockFeatures } from '@tanstack/time' const calendar = createCalendar({ viewMode: { value: 1, unit: 'week' }, timeZone: 'UTC', features: calendarFeatures(stockFeatures), events: [ { id: '1', title: 'Team Standup', start: '2024-03-18T09:00:00', end: '2024-03-18T10:00:00', }, ], }) console.log(calendar.getEvents()) console.log(calendar.getDays()) ``` ## React Usage Use the `useCalendar` hook to create a reactive calendar inside a component. ```tsx import { useCalendar } from '@tanstack/react-time' import { calendarFeatures, stockFeatures } from '@tanstack/time' function MyCalendar() { const calendar = useCalendar({ viewMode: { value: 1, unit: 'week' }, timeZone: 'UTC', features: calendarFeatures(stockFeatures), events: [ { id: '1', title: 'Team Standup', start: '2024-03-18T09:00:00', end: '2024-03-18T10:00:00', }, ], }) return (