Mantine Switch (#34005)
* wip * Add comma and fix spelling error * Added some padding and things * switch control styles * text styles * add storybook examples * Add guidance text * Add top padding for small switches * change default size from `sm` to `md` * fix missing default `size` prop * fix paddings * remove label padding if empty * use `getStylesRef` --------- Co-authored-by:Oisin Coveney <oisin@metabase.com> Co-authored-by:
Maz Ameli <maz@metabase.com>
Showing
- frontend/src/metabase/ui/components/inputs/Switch/Switch.stories.mdx 118 additions, 0 deletions...c/metabase/ui/components/inputs/Switch/Switch.stories.mdx
- frontend/src/metabase/ui/components/inputs/Switch/Switch.styled.tsx 120 additions, 0 deletions...rc/metabase/ui/components/inputs/Switch/Switch.styled.tsx
- frontend/src/metabase/ui/components/inputs/Switch/index.ts 3 additions, 0 deletionsfrontend/src/metabase/ui/components/inputs/Switch/index.ts
- frontend/src/metabase/ui/components/inputs/index.ts 1 addition, 0 deletionsfrontend/src/metabase/ui/components/inputs/index.ts
- frontend/src/metabase/ui/theme.ts 2 additions, 0 deletionsfrontend/src/metabase/ui/theme.ts
Please register or sign in to comment