Import
import { Tabs } from '@dnb/eufemia'
Description
Tabs are a set of buttons that allow navigation between content that is related and on the same level of hierarchy.
Demos
Tabs where content is provided from outside
As this may be a more common use case, we still have to ensure our tabs content is linked together with the tabs – because of accessibility.
You have to provide an id
to both of the components.
NB: You don't need to use a function inside Tabs.Content
– it can contain any element you need, as long as it is a React Node.