ThemeIcon
Render icon inside element with theme colors
Import
Source
Docs
Package
Usage
Radius
Size
Color
Gradient variant
When variant
prop is set to gradient
, you can control gradient with gradient
prop, it accepts an object with from
, to
and deg
properties. If thegradient
prop is not set, ThemeIcon
will use theme.defaultGradient
which can be configured on the theme object. gradient
prop is ignored when variant
is not gradient
.
Note that variant="gradient"
supports only linear gradients with two colors. If you need a more complex gradient, then use Styles API to modify ThemeIcon
styles.
Gradient from
Gradient to
Gradient degree