diff --git a/core/src/components/toggle/readme.md b/core/src/components/toggle/readme.md index 3dfafba9fa..13046f3267 100644 --- a/core/src/components/toggle/readme.md +++ b/core/src/components/toggle/readme.md @@ -3,42 +3,6 @@ Toggles change the state of a single option. Toggles can be switched on or off by pressing or swiping them. They can also be checked programmatically by setting the `checked` property. -```html - - - - - - - - - - - - - - - - - - - - Pepperoni - - - - - Sausage - - - - - Mushrooms - - - -``` - diff --git a/core/src/components/toggle/toggle.tsx b/core/src/components/toggle/toggle.tsx index 0b9e7ca53b..50c2241f90 100644 --- a/core/src/components/toggle/toggle.tsx +++ b/core/src/components/toggle/toggle.tsx @@ -27,14 +27,12 @@ export class Toggle implements CheckboxInput { /** * The color to use from your Sass `$colors` map. * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - * For more information, see [Theming your App](/docs/theming/theming-your-app). */ @Prop() color?: Color; /** * The mode determines which platform styles to use. * Possible values are: `"ios"` or `"md"`. - * For more information, see [Platform Styles](/docs/theming/platform-specific-styles). */ @Prop() mode!: Mode; diff --git a/core/src/components/toggle/usage/angular.md b/core/src/components/toggle/usage/angular.md new file mode 100644 index 0000000000..ca3249257b --- /dev/null +++ b/core/src/components/toggle/usage/angular.md @@ -0,0 +1,20 @@ +```html + + + + Pepperoni + + + + + Sausage + + + + + Mushrooms + + + + +``` diff --git a/core/src/components/toggle/usage/javascript.md b/core/src/components/toggle/usage/javascript.md new file mode 100644 index 0000000000..d155da6b9d --- /dev/null +++ b/core/src/components/toggle/usage/javascript.md @@ -0,0 +1,28 @@ +```html + + + + + + + + + + + + + Pepperoni + + + + + Sausage + + + + + Mushrooms + + + +```