Icon

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

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

Constructors

Link copied to clipboard
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.

Properties

Link copied to clipboard

Whether the icons to have the same width.

Link copied to clipboard

The name of the icon.

Link copied to clipboard

A number of degrees to rotate the icon. Valid values are 90, 180 and 270.

Link copied to clipboard
var size: String?

The size of the icon.

Link copied to clipboard

Whether the icons should be spinning.

Functions

Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun render(): <Error class: unknown class>