Skip to main content

Icon

Properties

PropertyTypeDescription
iconstringIcon to display
rotatenumberAmount in degrees to rotate the icon
spinbooleanWhether the icon should be spinning
fontSizestringSize of icon
twoToneColorstringOnly supported by two-tone icons. Specify primary color
List of Icons

Ant Design Icon Page

Children

Icon does not support children.

Example

myUI:createElement("Icon", {
icon = "InfoCircleOutlined",
color = "white",
fontSize = "30px"
}),

How it looks (Ignore the text underneath):

image

icon

What icon to use, you can see a list of icons here

rotate

rotate = 180 will turn the icon upside down.

spin

spin = true will make the icon spin around.