Tabs
Komponent för att segmentera information. Används för att minska informationsmängden som direkt presenteras för användaren.
Installation
- npm
- Yarn
- pnpm
npm install @midas-ds/components
yarn add @midas-ds/components
pnpm add @midas-ds/components
import { Tabs } from '@midas-ds/components'
API
Namn | Typ | Standard | Beskrivning |
---|---|---|---|
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 |