diff --git a/assets/docs/components/switch.md b/assets/docs/components/switch.md index 3a718da6..b497600e 100644 --- a/assets/docs/components/switch.md +++ b/assets/docs/components/switch.md @@ -74,6 +74,7 @@ class ClassNames: INPUT = "peer sr-only" TRACK = ( + "inline-flex items-center " "relative rounded-full bg-muted " "outline-none " "group-data-[size=default]/switch:h-[18.4px] group-data-[size=default]/switch:w-[32px] " diff --git a/components/ui/switch.py b/components/ui/switch.py index 9f367a0d..9ec2ffe5 100644 --- a/components/ui/switch.py +++ b/components/ui/switch.py @@ -10,6 +10,7 @@ class ClassNames: INPUT = "peer sr-only" TRACK = ( + "inline-flex items-center " "relative rounded-full bg-muted " "outline-none " "group-data-[size=default]/switch:h-[18.4px] group-data-[size=default]/switch:w-[32px] "