diff --git a/src/components/switch/switch.tsx b/src/components/switch/switch.tsx index 98cf1524..f969adff 100644 --- a/src/components/switch/switch.tsx +++ b/src/components/switch/switch.tsx @@ -68,6 +68,10 @@ export const SwitchLabel = ( { sm: 'text-xs leading-4 font-normal', md: 'text-sm leading-5 font-normal', }; + const gapClassNames = { + sm: 'space-y-0.5', + md: 'space-y-1', + }; const isLabelAComponent = isValidElement( label ); if ( isLabelAComponent ) { return ( @@ -82,7 +86,7 @@ export const SwitchLabel = ( { const renderLabel = () => { const { heading = '', description = '' } = label || {}; return ( -