Skip to content

Set initial index #154

Answered by prabhuignoto
ccboyce asked this question in Q&A
Discussion options

You must be logged in to vote

you can use focusActiveItemOnLoad in combination with activeItemIndex to automatically set a specific index on load

refer the props section
https://github.com/prabhuignoto/react-chrono#props

example:

<Chrono
  items={items}
  mode="VERTICAL"
  focusActiveItemOnLoad
  activeItemIndex={2}
/>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by prabhuignoto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants