@finastra/tabs
v1.8.1
Published
Tabs Web Component
Downloads
195
Readme
Tabs
Usage
Import
npm i @finastra/tabs
import '@finastra/tabs';
...
<fds-tab-group>
<fds-tab-item label="Tab 1">Content tab 1</fds-tab-item>
<fds-tab-item label="Tab 2">Content tab 2</fds-tab-item>
</fds-tab-group>
API
Properties
| Property | Attribute | Type | Default | Description |
| ------------------- | ------------------- | --------- | ------- | --------------------------------------------------------------------------------- |
| headerDisplayType
| headerDisplayType
| string
| "" | Display type for tab button: Accepts one of values : classic \| segmented \| ''
|
| headerPosition
| headerPosition
| string
| "start" | Position of header. Accepts one of values : start \| center \| end
|
| override
| | | | |
| selectedIndex
| selectedIndex
| number
| 0 | Index of tab that is active. |
| separator
| separator
| boolean
| false | Add dividers between tabs |
Methods
| Method | Type |
| ------------------ | ---------- |
| observeChildList
| (): void
|
| updateTabInfo
| (): void
|
Events
| Event | Type |
| --------------------- | --------------------------------- |
| selectedIndexChange
| CustomEvent<{ index: number; }>
|
fds-tab-item
Properties
| Property | Attribute | Type | Default |
| -------- | --------- | -------- | ------- |
| label
| label
| string
| "" |