A Toggle Icon Button (like a Toggle Button) lets users turn something on and off like a light switch. It is used for repeated or persistent actions on a page and lacks a visible label to simplify the UI.
To see or compare the results of a settings change
To cause an immediate effect, such as making text bold
To simplify the appearance of repeated or persistent actions on a page
To enable action in a toolbar
Not for this
To let users select from a list of settings, use Checkboxes instead
To include an icon and a label, use a Button with a start or end icon
How to use it
Default
The typical usage of a Toggle Icon Button component.
Leaf
Toggle dark mode
Set primary hue
Toggle RTL
Copy code
View code
Disabled
A disabled Toggle Icon Button prevents user interaction. It doesn’t appear in
the tab order, can’t receive focus, and may not be read aloud by a
screenreader.
Toggle dark mode
Set primary hue
Toggle RTL
Copy code
View code
Shape
Toggle Icon Buttons are circular by default, but they can be squares too.
Round leaf
Square bold
Toggle dark mode
Set primary hue
Toggle RTL
Copy code
View code
Size
Toggle Icon Buttons can be small, medium, or large. The default size is medium.
Small leaf
Medium leaf
Large leaf
Toggle dark mode
Set primary hue
Toggle RTL
Copy code
View code
Type
Toggle Icon Buttons have three types: basic, outline, and primary. The default type is basic.
Default leaf
Primary leaf
Basic leaf
Toggle dark mode
Set primary hue
Toggle RTL
Copy code
View code
How to use it well
Don’t leave users in the dark
Do this
Include a Tooltip to help any users who may be unfamiliar with the
icon.