Const
Optional theme provider. It supplies defaults to descendant planners; the component works without a provider because themes render as CSS variables.
<YearPlannerProvider theme={createTheme({ ribbon: "#8358c6" })}> <YearPlanner year={2027} /></YearPlannerProvider> Copy
<YearPlannerProvider theme={createTheme({ ribbon: "#8358c6" })}> <YearPlanner year={2027} /></YearPlannerProvider>
Optional theme provider. It supplies defaults to descendant planners; the component works without a provider because themes render as CSS variables.