Icon

constructor(icon: String, size: String? = null, rotate: Number? = null, fixedWidth: Boolean? = null, spin: Boolean? = null, className: String? = null, init: Icon.() -> Unit? = null)

Creates an icon component.

Parameters

icon

the name of the icon

size

the size of the icon

rotate

a number of degrees to rotate the icon - valid values are 90, 180 and 270

fixedWidth

whether the icons to have the same width

spin

whether the icon should be spinning

className

CSS class names

init

an initializer extension function