Icon

Available as: Web ComponentShortcodeOxygen Element

Wrapper component for different kinds of icon sets. Currently comes included with Ionicons.

<spx-icon icon="cube" size="2em"></spx-icon>

Properties

color

Type: stringDefault: inherit

icon

Type: string

Icon code.

size

Type: stringDefault: 1em

Icon size.

size-max

Type: numberDefault: 1

size-min

Type: numberDefault: 0.8

styling

Type: stringDefault: defaultChoices: default, fluid

Styling.

type

Type: stringDefault: ioniconsChoices: ionicons, caret

Icon type.

width

Type: string

Events

spxIconDidLoad

Fires after component has loaded.