Icon
Properties
Property | Type | Description |
---|---|---|
icon | string | Icon to display |
rotate | number | Amount in degrees to rotate the icon |
spin | boolean | Whether the icon should be spinning |
fontSize | string | Size of icon |
twoToneColor | string | Only 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):

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.