-
-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Timeline): add isItemActive prop #3198
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ab3cde1:
|
9a6cc82
to
ab3cde1
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3198 +/- ##
=======================================
Coverage 93.38% 93.39%
=======================================
Files 564 564
Lines 20287 20308 +21
Branches 2754 2755 +1
=======================================
+ Hits 18945 18966 +21
Misses 695 695
Partials 647 647
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻 ,don't forget to update the API docs after release.
Sure. I've opened #3203 to keep track of it. |
New
isItemActive
prop of Timeline componentSpecify which Timeline.Item should be marked active (with the blue dot).
Example
Signature
The
isItemActive
function takes two arguments and returns a boolean valuePresets
Two preset values are provided for convenience.
Timeline.ACTIVE_FIRST
Mark the first item as activeTimeline.ACTIVE_LAST
Mark the last item as active (the default behavior)Usage
Close #3160