summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/tabs.tsx
diff options
context:
space:
mode:
authorShoubhit Dash <[email protected]>2026-04-16 17:30:14 +0530
committerShoubhit Dash <[email protected]>2026-04-16 17:30:14 +0530
commit2e18a603f0ea24154908e748493fd4bfaa74fc00 (patch)
treeb723e00af2821b213573b16fa199b64babd5f1f5 /packages/ui/src/components/tabs.tsx
parent9819eb04614fd607cacb07d754052f1531a82331 (diff)
parent7341718f9234b0cf3a8758c87e91d2006b71bff6 (diff)
downloadopencode-2e18a603f0ea24154908e748493fd4bfaa74fc00.tar.gz
opencode-2e18a603f0ea24154908e748493fd4bfaa74fc00.zip
merge dev
Diffstat (limited to 'packages/ui/src/components/tabs.tsx')
-rw-r--r--packages/ui/src/components/tabs.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/ui/src/components/tabs.tsx b/packages/ui/src/components/tabs.tsx
index 396504dd7..f46e9bfb3 100644
--- a/packages/ui/src/components/tabs.tsx
+++ b/packages/ui/src/components/tabs.tsx
@@ -27,7 +27,7 @@ function TabsRoot(props: TabsProps) {
data-variant={split.variant || "normal"}
data-orientation={split.orientation || "horizontal"}
classList={{
- ...(split.classList ?? {}),
+ ...split.classList,
[split.class ?? ""]: !!split.class,
}}
/>
@@ -41,7 +41,7 @@ function TabsList(props: TabsListProps) {
{...rest}
data-slot="tabs-list"
classList={{
- ...(split.classList ?? {}),
+ ...split.classList,
[split.class ?? ""]: !!split.class,
}}
/>
@@ -63,7 +63,7 @@ function TabsTrigger(props: ParentProps<TabsTriggerProps>) {
data-slot="tabs-trigger-wrapper"
data-value={props.value}
classList={{
- ...(split.classList ?? {}),
+ ...split.classList,
[split.class ?? ""]: !!split.class,
}}
onMouseDown={(e) => {
@@ -104,7 +104,7 @@ function TabsContent(props: ParentProps<TabsContentProps>) {
{...rest}
data-slot="tabs-content"
classList={{
- ...(split.classList ?? {}),
+ ...split.classList,
[split.class ?? ""]: !!split.class,
}}
>