{[...state.collection].map((item) => (
diff --git a/packages/actify/src/components/Tabs/tabs.module.css b/packages/actify/src/components/Tabs/tabs.module.css
index 3e5ca82..694d2f3 100644
--- a/packages/actify/src/components/Tabs/tabs.module.css
+++ b/packages/actify/src/components/Tabs/tabs.module.css
@@ -1,5 +1,9 @@
.tabs {
padding: 8px;
+ --_active-indicator-width: var(
+ --md-secondary-tab-active-indicator-width,
+ 2px
+ );
--_active-indicator-height: var(
--md-secondary-tab-active-indicator-height,
2px
@@ -9,25 +13,41 @@
var(--md-sys-color-primary, #6750a4)
);
}
+.tabs-vertical {
+ display: flex;
+}
.tab {
position: relative;
}
+.tabpanel {
+ flex: 1;
+}
.tab-selection {
position: absolute;
- left: 0;
- bottom: 2px;
- height: var(--_active-indicator-height);
will-change: transform, width;
transition:
transform 150ms,
width 100ms;
background: rgb(var(--_active-indicator-color));
}
+.tab-selection-horizontal {
+ left: 0;
+ bottom: 2px;
+ height: var(--_active-indicator-height);
+}
+.tab-selection-vertical {
+ top: 0;
+ right: 2px;
+ width: var(--_active-indicator-width);
+}
.tab-list {
display: flex;
gap: 8px;
align-items: center;
}
+.tab-list-vertical {
+ flex-direction: column;
+}
.tab-item {
padding: 10px 12px;
position: relative;