Skip to content

Icons

Icons are small symbols to easily identify actions and categories.

demonstration

Usage

python
from material_ui.icon import Icon

Icon(icon_name="star")

Icon Font

The icon font used is Material Symbols. You can find the available icons and their names on the Google Fonts website.

Variable axes are used to control the style of the icon.

API

Properties

NameTypeDefaultDescription
selectedboolFalseWhether the checkbox is checked.
icon_namestr"star"Icon name to display. See: https://fonts.google.com/icons.
icon_styleIconStyle"outlined"Icon style. Either 'outlined', 'rounded', or 'sharp'.
font_sizeDesignToken | int24Font size of icon.
color DesignToken | QColoron_surfaceColor of the icon.
weightint400Main control of thickness. 400 is default, 100 is thin, 700 is thick.
filled boolFalseWhether the icon should be filled.
gradeint0Thickness. 0 is default, -25 is thin, 200 is thick.
use_optical_size boolTrueWhether to set the optical size to match the font size.

Signals

n/a