-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
When building timelines with many events spanning different categories (e.g., "Super Bowls", "Expansion Teams", "Rule Changes"), users need a way to filter the view to focus on specific event types.
Use Case
My NFL timeline has 40+ events across categories like founding events, championship games, team expansions, and rule changes. Users should be able to toggle categories on/off to focus on what interests them.
Proposed Solution
- Add an optional
categoryproperty to the event data structure - Provide a
showCategoryFilterprop that renders a toggle UI - Support
onCategoryChangecallback for custom filter implementations - Allow styling of category chips/toggles via theme
Example API
<Timeline
data={data} // events include { category: 'super-bowl' }
showCategoryFilter={true}
categoryLabels={{ 'super-bowl': 'Super Bowls', 'expansion': 'Expansion Teams' }}
/>Issue generated from user feedback while building an NFL history timeline
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels