AnimatedIconCrossfade displays one of two icon components according to isActive. It does not own the action or state. Compose it inside a labeled Button.
size defaults to the small theme icon size. Keep the accessible action name on the surrounding control. The icons communicate its state visually.
Props
IconComponent
required
Icon component for the active state.
IconComponent
required
Icon component for the inactive state.
boolean
required
Shows ActiveIcon when true and InactiveIcon otherwise.
number
Icon dimension in pixels. Defaults to the small theme icon size.