Skip to content

Commit 696ed04

Browse files
devversionmmalerba
authored andcommitted
docs(material/button-toggle): add description for appearance property in default options (#22852)
* docs(material/button-toggle): add description for appearance property in default options Developers can specify a default appearance for button toggles using the `MatButtonToggleDefaultOptions`. The appearance property within these default options is not documented. This commit adds a description. * fixup! docs(material/button-toggle): add description for appearance property in default options Address feedback (cherry picked from commit c65a87b)
1 parent 8bc2819 commit 696ed04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/button-toggle/button-toggle.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export type MatButtonToggleAppearance = 'legacy' | 'standard';
5454
* using the `MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS` injection token.
5555
*/
5656
export interface MatButtonToggleDefaultOptions {
57+
/**
58+
* Default appearance to be used by button toggles. Can be overridden by explicitly
59+
* setting an appearance on a button toggle or group.
60+
*/
5761
appearance?: MatButtonToggleAppearance;
5862
}
5963

0 commit comments

Comments
 (0)