Skip to content

Commit ac16ccc

Browse files
committed
Added medium switch style
1 parent ab60348 commit ac16ccc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

apps/webapp/app/components/primitives/Switch.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ const variations = {
3333
"transition group-hover:text-text-bright group-disabled:group-hover:text-text-dimmed"
3434
),
3535
},
36+
medium: {
37+
container:
38+
"flex items-center gap-x-2 rounded-md hover:bg-tertiary py-1.5 px-2 transition focus-custom",
39+
root: "h-4 w-8",
40+
thumb: "size-3.5 data-[state=checked]:translate-x-3.5 data-[state=unchecked]:translate-x-0",
41+
text: "text-sm text-text-dimmed",
42+
},
3643
};
3744

3845
type SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> & {

0 commit comments

Comments
 (0)