diff --git a/src/dev-app/slide-toggle/slide-toggle-demo.html b/src/dev-app/slide-toggle/slide-toggle-demo.html
index 0065ad4c5067..7be860ac2a12 100644
--- a/src/dev-app/slide-toggle/slide-toggle-demo.html
+++ b/src/dev-app/slide-toggle/slide-toggle-demo.html
@@ -1,29 +1,15 @@
-
-
- Default Slide Toggle
-
-
-
- Disabled Slide Toggle
-
-
-
- Disable Bound
-
+
Default Slide Toggle
+
Disabled Slide Toggle
+
Disable Bound
+
No icon
Example where the slide toggle is required inside of a form.
-
-
\ No newline at end of file
+
diff --git a/src/material/slide-toggle/slide-toggle-config.ts b/src/material/slide-toggle/slide-toggle-config.ts
index 30ae3cf64623..8dfe1eaaf7b9 100644
--- a/src/material/slide-toggle/slide-toggle-config.ts
+++ b/src/material/slide-toggle/slide-toggle-config.ts
@@ -15,6 +15,9 @@ export interface MatSlideToggleDefaultOptions {
/** Default color for slide toggles. */
color?: ThemePalette;
+
+ /** Whether to hide the icon inside the slide toggle. */
+ hideIcon?: boolean;
}
/** Injection token to be used to override the default options for `mat-slide-toggle`. */
@@ -22,6 +25,6 @@ export const MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS = new InjectionToken ({disableToggleValue: false}),
+ factory: () => ({disableToggleValue: false, hideIcon: false}),
},
);
diff --git a/src/material/slide-toggle/slide-toggle.html b/src/material/slide-toggle/slide-toggle.html
index 0401eecbb829..fb83dc215e92 100644
--- a/src/material/slide-toggle/slide-toggle.html
+++ b/src/material/slide-toggle/slide-toggle.html
@@ -31,7 +31,7 @@
[matRippleDisabled]="disableRipple || disabled"
[matRippleCentered]="true">
-
+