diff --git a/apps/website/pages/components/switch/code.tsx b/apps/website/pages/components/switch/code.tsx new file mode 100644 index 0000000000..a8170451dd --- /dev/null +++ b/apps/website/pages/components/switch/code.tsx @@ -0,0 +1,17 @@ +import Head from "next/head"; +import type { ReactElement } from "react"; +import SwitchPageLayout from "screens/components/switch/SwitchPageLayout"; +import SwitchCodePage from "screens/components/switch/code/SwitchCodePage"; + +const Code = () => ( + <> +
+label is provided.
+ value attribute of the HTML input element. When inside a form, this
- value will be only submitted if the switch is checked.
+ value attribute of the HTML input element. When inside a form, this
+ value will be only submitted if the switch is checked.
labelFontColor
- color-black
- disabledLabelFontColor
- color-grey-500
- checkedThumbBackgroundColor
- color-white
- checkedTrackBackgroundColor
- color-purple-700
- uncheckedTrackBackgroundColor
- color-grey-400
- uncheckedThumbBackgroundColor
- color-white
- disabledCheckedTrackBackgroundColor
- color-purple-100
- disabledUncheckedTrackBackgroundColor
- color-grey-100
- disabledCheckedThumbBackgroundColor
- color-white
- disabledUncheckedTrackBackgroundColor
- color-grey-100
- disabledUncheckedThumbBackgroundColor
- color-white
- thumbFocusColor
- color-blue-600
- labelFontFamily
- font-family-sans
- labelFontSize
- font-scale-02
- labelFontWeight
- font-weight-regular
- labelFontStyle
- font-style-normal
- thumbHeight
- thumbWidth
- trackHeight
- trackWidth
- focusHeight
- focusWidth
- border-width
- border-width-0
- border-style
- border-style-none
- border-radius
- border-radius-full
- border-width
- border-width-0
- border-style
- border-style-none
- border-radius
- border-radius-full
- border-width
- border-width-2
- border-style
- border-style-solid
- border-radius
- border-radius-full
- xxsmall
- xsmall
- small
- medium
- large
- xlarge
- xxlarge
- top, bottom,{" "}
- left and right.
- padding
- spacing-8
- margin-left/right*
- spacing-8
- padding
- spacing-12
-