You should really consider making this accessible instead. Currently users that rely on keyboard navigation wont be able to use your tabs component. Not making components accessible excludes users from your apps, and this effect only gets amplified by sharing inaccessible component tutorials like these; other beginning developers may see this post and learn bad habits/inaccessible components.
You should really consider making this accessible instead. Currently users that rely on keyboard navigation wont be able to use your tabs component. Not making components accessible excludes users from your apps, and this effect only gets amplified by sharing inaccessible component tutorials like these; other beginning developers may see this post and learn bad habits/inaccessible components.
You can find more information on making accessible tabs here: w3.org/TR/wai-aria-practices-1.1/e...