diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index addbd6e2..088058dc 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -1,6 +1,6 @@
# Component Index
-> 155 components exported from carbon-components-svelte@0.25.1.
+> 156 components exported from carbon-components-svelte@0.25.1.
## Components
@@ -134,6 +134,7 @@
- [`TableRow`](#tablerow)
- [`Tabs`](#tabs)
- [`TabsSkeleton`](#tabsskeleton)
+- [`TabsV2`](#tabsv2)
- [`Tag`](#tag)
- [`TagSkeleton`](#tagskeleton)
- [`TextArea`](#textarea)
@@ -3582,6 +3583,44 @@ None.
| mouseenter | forwarded | -- |
| mouseleave | forwarded | -- |
+## `TabsV2`
+
+### Types
+
+```ts
+export type TabsV2ItemId = number | string;
+
+export interface TabsV2Item {
+ id: TabsV2ItemId;
+ label?: string;
+ disabled?: boolean;
+}
+```
+
+### Props
+
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------------- | :--------------- | :------- | :---------------------------------------- | -------------------------------- | ------------------------------------------- |
+| selectedId | let
| Yes | TabsV2ItemId
| -- | Specify the selected tab id |
+| selectedIndex | let
| Yes | number
| 0
| Specify the selected tab index |
+| items | let
| No | TabsV2Item[]
| []
| Provide the tab items |
+| type | let
| No | "default" | "container"
| "default"
| Specify the type of tabs |
+| iconDescription | let
| No | string
| "Show menu options"
| Specify the ARIA label for the chevron icon |
+| triggerHref | let
| No | string
| "#"
| Specify the tab trigger href attribute |
+
+### Slots
+
+| Slot name | Default | Props | Fallback |
+| :-------- | :------ | :------------------------------------------------------------------- | :------------------------ |
+| -- | Yes | { id: TabsV2ItemId; index: number; item: TabsV2Item; }
| -- |
+| tab | No | -- | {item.label}
|
+
+### Events
+
+| Event name | Type | Detail |
+| :--------- | :--------- | :---------------------------------------------------------------------------------------- |
+| change | dispatched | { selectedIndex: number; selectedId: TabsV2ItemId; currentItem: TabsV2Item }
|
+
## `Tag`
### Props
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index 799b29d9..ac9d6dc9 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -1,5 +1,5 @@
{
- "total": 155,
+ "total": 156,
"components": [
{
"moduleName": "SkeletonText",
@@ -7637,6 +7637,104 @@
"typedefs": [],
"rest_props": { "type": "Element", "name": "div" }
},
+ {
+ "moduleName": "TabsV2",
+ "filePath": "/src/Tabs/TabsV2.svelte",
+ "props": [
+ {
+ "name": "items",
+ "kind": "let",
+ "description": "Provide the tab items",
+ "type": "TabsV2Item[]",
+ "value": "[]",
+ "isFunction": false,
+ "constant": false,
+ "reactive": false
+ },
+ {
+ "name": "selectedIndex",
+ "kind": "let",
+ "description": "Specify the selected tab index",
+ "type": "number",
+ "value": "0",
+ "isFunction": false,
+ "constant": false,
+ "reactive": true
+ },
+ {
+ "name": "selectedId",
+ "kind": "let",
+ "description": "Specify the selected tab id",
+ "type": "TabsV2ItemId",
+ "isFunction": false,
+ "constant": false,
+ "reactive": true
+ },
+ {
+ "name": "type",
+ "kind": "let",
+ "description": "Specify the type of tabs",
+ "type": "\"default\" | \"container\"",
+ "value": "\"default\"",
+ "isFunction": false,
+ "constant": false,
+ "reactive": false
+ },
+ {
+ "name": "iconDescription",
+ "kind": "let",
+ "description": "Specify the ARIA label for the chevron icon",
+ "type": "string",
+ "value": "\"Show menu options\"",
+ "isFunction": false,
+ "constant": false,
+ "reactive": false
+ },
+ {
+ "name": "triggerHref",
+ "kind": "let",
+ "description": "Specify the tab trigger href attribute",
+ "type": "string",
+ "value": "\"#\"",
+ "isFunction": false,
+ "constant": false,
+ "reactive": false
+ }
+ ],
+ "slots": [
+ {
+ "name": "__default__",
+ "default": true,
+ "slot_props": "{ id: TabsV2ItemId; index: number; item: TabsV2Item; }"
+ },
+ {
+ "name": "tab",
+ "default": false,
+ "fallback": "{item.label}",
+ "slot_props": "{}"
+ }
+ ],
+ "events": [
+ {
+ "type": "dispatched",
+ "name": "change",
+ "detail": "{ selectedIndex: number; selectedId: TabsV2ItemId; currentItem: TabsV2Item }"
+ }
+ ],
+ "typedefs": [
+ {
+ "type": "number | string",
+ "name": "TabsV2ItemId",
+ "ts": "type TabsV2ItemId = number | string"
+ },
+ {
+ "type": "{ id: TabsV2ItemId; label?: string; disabled?: boolean; }",
+ "name": "TabsV2Item",
+ "ts": "interface TabsV2Item { id: TabsV2ItemId; label?: string; disabled?: boolean; }"
+ }
+ ],
+ "rest_props": { "type": "Element", "name": "div" }
+ },
{
"moduleName": "TagSkeleton",
"filePath": "/src/Tag/TagSkeleton.svelte",
diff --git a/docs/src/pages/framed/Tabs/TabsV2.svelte b/docs/src/pages/framed/Tabs/TabsV2.svelte
new file mode 100644
index 00000000..9e0ced98
--- /dev/null
+++ b/docs/src/pages/framed/Tabs/TabsV2.svelte
@@ -0,0 +1,86 @@
+
+
+