11<script lang="ts">
2- import type { ColorType } from ' ../types'
2+ import type { ColorType , RadiusType } from ' ../types'
33
44export interface TabsListProps {
55 size? : ' 1' | ' 2'
6+ radius? : RadiusType
67 color? : ColorType
78 variant? : ' classic' | ' outline' | ' surface' | ' soft'
89 highContrast? : boolean
@@ -24,6 +25,7 @@ const resetClass = buildPropsClass(props, ['variant', 'size', 'highContrast'])
2425 <TabsList
2526 class =" ui-TabList"
2627 :class =" resetClass"
28+ :data-radius =" props.radius"
2729 :data-accent-color =" props.color"
2830 >
2931 <TabsIndicator class =" ui-TabsIndicator" />
@@ -52,7 +54,7 @@ const resetClass = buildPropsClass(props, ['variant', 'size', 'highContrast'])
5254 --tab-height : var (--space-6 );
5355 --tab-padding-x : var (--space-1 );
5456 --tab-radius : max (var (--radius-2 ), var (--radius-full ));
55- --tab-item-radius : var (--radius-1 );
57+ --tab-item-radius : max ( var (--radius-1 ), var ( --radius-full ) );
5658 --tab-inner-padding-x : var (--space-1 );
5759 --tab-inner-height : var (--space-5 );
5860}
@@ -63,7 +65,7 @@ const resetClass = buildPropsClass(props, ['variant', 'size', 'highContrast'])
6365 --tab-height : var (--space-7 );
6466 --tab-padding-x : var (--space-2 );
6567 --tab-radius : max (var (--radius-3 ), var (--radius-full ));
66- --tab-item-radius : var (--radius-2 );
68+ --tab-item-radius : max ( var (--radius-2 ), var ( --radius-full ) );
6769 --tab-inner-padding-x : var (--space-2 );
6870 --tab-inner-height : calc (var (--space-6 ) - var (--space-1 ));
6971}
0 commit comments