We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab60348 commit ac16cccCopy full SHA for ac16ccc
1 file changed
apps/webapp/app/components/primitives/Switch.tsx
@@ -33,6 +33,13 @@ const variations = {
33
"transition group-hover:text-text-bright group-disabled:group-hover:text-text-dimmed"
34
),
35
},
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
+ },
43
};
44
45
type SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> & {
0 commit comments