diff --git a/packages/grafana-ui/src/components/Switch/Switch.tsx b/packages/grafana-ui/src/components/Switch/Switch.tsx index 070444eb848..c80c8fae90c 100644 --- a/packages/grafana-ui/src/components/Switch/Switch.tsx +++ b/packages/grafana-ui/src/components/Switch/Switch.tsx @@ -47,12 +47,11 @@ export interface InlineSwitchProps extends Props { } export const InlineSwitch = React.forwardRef( - ({ transparent, showLabel, label, value, id, ...props }, ref) => { + ({ transparent, className, showLabel, label, value, id, ...props }, ref) => { const theme = useTheme2(); const styles = getSwitchStyles(theme, transparent); - return ( -
+
{showLabel && (