You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to implement a new marker-type (based on the existing TodayMarker component), I ran into the need for access to a function called getLeftOffsetFromDate which is available through the TimelineStateProvider context value (defined in src/lib/timeline/TimelineStateContext.tsx). That module also exports a hook (useTimelineState) that can return this function.
However, neither the hook nor the consumer-half of the context (TimelineStateConsumer) are exported by the package itself. So I'm unable to make use of them in my code.
Describe the solution you'd like
I would like to see these values made accessible to the developer, either as part of the overall exporting done by src/index.ts or through a different path.
Describe alternatives you've considered
I considered duplicating the code itself, but it relies on the current date-values of the left and right edges of the calendar, which also come from the context provider.
Additional context
My goal in doing this was to work around the fact that the CSS governing the TodayMarker (and, I assume, the other marker varieties) is hard-coded and very difficult to override.
This discussion was converted from issue #1034 on April 29, 2026 09:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
When trying to implement a new marker-type (based on the existing
TodayMarkercomponent), I ran into the need for access to a function calledgetLeftOffsetFromDatewhich is available through theTimelineStateProvidercontext value (defined insrc/lib/timeline/TimelineStateContext.tsx). That module also exports a hook (useTimelineState) that can return this function.However, neither the hook nor the consumer-half of the context (
TimelineStateConsumer) are exported by the package itself. So I'm unable to make use of them in my code.Describe the solution you'd like
I would like to see these values made accessible to the developer, either as part of the overall exporting done by
src/index.tsor through a different path.Describe alternatives you've considered
I considered duplicating the code itself, but it relies on the current date-values of the left and right edges of the calendar, which also come from the context provider.
Additional context
My goal in doing this was to work around the fact that the CSS governing the
TodayMarker(and, I assume, the other marker varieties) is hard-coded and very difficult to override.All reactions