Chakra-ui: Setting Tabs's Default / Current Index

Created on 8 Nov 2019  路  3Comments  路  Source: chakra-ui/chakra-ui

I'm sure I'm missing something, I just need some guidance, or geussing this might be an easy fix.

What is the current way the set / control index of Tabs component.

defaultIndex or index is not valid props for @chakra-ui/core": "0.4.0

TypeScript 馃

All 3 comments

Update:

index props does work, however you need to use //@ts-ignoreas the Props interface is correct

The type definition of the Tabs component needs some updates. I'll update it in the next release

I've updated the definitions for the Tabs component and will release a new version soon

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gabriel-fortin picture gabriel-fortin  路  3Comments

harshzalavadiya picture harshzalavadiya  路  3Comments

ChrisLusted picture ChrisLusted  路  3Comments

sumdook picture sumdook  路  3Comments

nainardev picture nainardev  路  3Comments