Skip to content

Icon

The Icon component wraps a Font Awesome icon inside Bulma’s .icon container span, applying size, color, and position modifiers correctly.

<Icon icon="fa-star" />

The size prop controls the Bulma wrapper container (useful for input icon alignment). To visually scale the glyph, use Font Awesome’s own size modifiers in the icon string:

<Icon icon="fa-home fa-xs" />
<Icon icon="fa-home fa-sm" />
<Icon icon="fa-home" />
<Icon icon="fa-home fa-lg" />
<Icon icon="fa-home fa-2x" />
<Icon icon="fa-home fa-3x" />

The size prop sets the Bulma .icon wrapper dimensions — pair it with a matching FA size modifier when using icons inside input controls:

<Icon icon="fa-home" size="small" />
<Icon icon="fa-home fa-lg" size="medium" />
<Icon icon="fa-home fa-2x" size="large" />
<Icon icon="fa-heart" color="danger" />
<Icon icon="fa-check" color="success" />
<Icon icon="fa-info-circle" color="info" />
<Icon icon="fa-clock" variant="fas" />
<Icon icon="fa-clock" variant="far" />
<Icon icon="fa-github" variant="fab" />
PropTypeDefaultDescription
iconstringRequired. FA icon name, e.g. "fa-plus".
variant"fas" | "far" | "fab" | "fal" | "fad""fas"Font Awesome variant prefix.
size"small" | "medium" | "large"Bulma size modifier on the wrapper span.
colorstringApplies has-text-{color} to the wrapper.
position"left" | "right"Position inside a Bulma input control.
classstringExtra classes on the wrapper span.