useCalendar
Read the item-agnostic calendar controller from context.
function Toolbar() {
const calendar = useCalendar()
return (
<button onClick={calendar.next}>{calendar.title()}</button>
)
}The hook accepts no item generic. Item types belong to useCalendarView calls below the provider.