API reference
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
| closable | closable | When | boolean | false |
| closed | closed | When | boolean | false |
| disabled | disabled | When | boolean | false |
| iconEnd | icon-end | Specifies an icon to display at the end of the component. | IconName | |
| iconFlipRtl | icon-flip-rtl | Displays the | FlipContext | |
| iconStart | icon-start | Specifies an icon to display at the start of the component. | IconName | |
| messageOverrides | Overrides individual strings used by the component. | Record<string, unknown> | undefined | ||
| position | position | Specifies the position of @internal | TabPosition | "top" |
| selected | selected | When Only one tab can be selected within the | boolean | false |
| tab | tab | Specifies a unique name for the component. When specified, use the same value on the | string |
Slots
| Name | Description |
|---|---|
| default (unnamed) | A slot for adding text. |
Styles
| Name | Description |
|---|---|
| --calcite-tab-text-color | Specifies the component's text color. |
| --calcite-tab-text-color-press | Specifies the component's text color when hovered, pressed, or selected. |
| --calcite-tab-border-color | Specifies the component's border color. |
| --calcite-tab-background-color | Specifies the component's background color. |
| --calcite-tab-background-color-hover | When |
| --calcite-tab-accent-color-press | When |
| --calcite-tab-icon-color-start | Specifies the component's |
| --calcite-tab-icon-color-start-press | When |
| --calcite-tab-icon-color-end | Specifies the component's |
| --calcite-tab-icon-color-end-press | When |
| --calcite-tab-close-icon-color | Specifies the component's close element icon color. |
| --calcite-tab-close-icon-color-press | Specifies the component's close element icon color when hovered, focused, and active. |
| --calcite-tab-close-icon-background-color | Specifies the component's close element icon background color. |
| --calcite-tab-close-icon-background-color-press | Specifies the component's close element icon background color when pressed. |
| --calcite-tab-close-icon-background-color-hover | Specifies the component's close element icon background color when hovered. |
Events
| Name | Description | Behavior |
|---|---|---|
| calciteTabsActivate | Fires when a | |
| calciteTabsClose | Fires when a |
Methods
| Name | Description | Signature |
|---|---|---|
| componentOnReady | Creates a promise that resolves once the component is fully loaded. | componentOnReady(): Promise<this> |
| getTabIndex | Returns the index of the title within the | getTabIndex(): Promise<number> |