Skip to content
Theme:

Ui3nIcon

Icon component for rendering SVG icons with customizable size, color, and transformations.

Props

NameTypeDefaultDescription
idstring | undefined

Root element id

icon*string

Icon name

titlestring | undefined""

Icon title

sizestring | number | undefined

Icon size

widthstring | number | undefined

Icon width

heightstring | number | undefined

Icon height

colorstring | undefined"var(--color-icon-control-primary-default)"

Icon color

horizontalFlipboolean | undefined

Flip icon horizontally

verticalFlipboolean | undefined

Flip icon vertically

rotatenumber | undefined0

Icon rotation in degrees

Events

Event NameArguments / Value TypeDescription
clickvalue: MouseEvent

Usage Examples

Basic usage

Basic usage

Icon with different sizes using the size prop

Icon colors

Icon colors

Customize icon color using the color prop

Custom width and height

Custom width and height

Set separate width and height values instead of using size

Transformations

Transformations

Flip and rotate icons using horizontalFlip, verticalFlip and rotate props

Click event

Click event

Handle click events on the icon

Clicked: 0