Skip to main content

Icon

Function Icon 

Source
pub fn Icon(_: IconProps) -> Element
Expand description

SVG icon component with configurable size and styling.

§Props

  • variant - The icon to display (see IconVariant)
  • size - Icon size (default: Medium/20px)
  • class - Optional additional CSS classes
  • color - Optional color override (uses currentColor by default)

§Props

For details, see the props struct definition.