Hoppa till huvudinnehåll

Tabs

Komponent för att segmentera information. Används för att minska informationsmängden som direkt presenteras för användaren.

Installation

npm install @midas-ds/components
import { Tabs } from '@midas-ds/components'

API

NamnTypStandardBeskrivning
tabs *T[]-An array of tab titles
label *string-Lable for accecibility
defaultSelected string-Choose another than the first tab to be selected by default. Name must match one of the tabs
children *ReactNode-Amount of children must match the amount of tabs