Icon
The Icon component wraps a Font Awesome icon inside Bulma’s .icon container span, applying size, color, and position modifiers correctly.
Basic usage
Section titled “Basic usage”<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" />Colors
Section titled “Colors”<Icon icon="fa-heart" color="danger" /><Icon icon="fa-check" color="success" /><Icon icon="fa-info-circle" color="info" />Variants (Font Awesome prefix)
Section titled “Variants (Font Awesome prefix)”<Icon icon="fa-clock" variant="fas" /><Icon icon="fa-clock" variant="far" /><Icon icon="fa-github" variant="fab" />| Prop | Type | Default | Description |
|---|---|---|---|
icon | string | — | Required. 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. |
color | string | — | Applies has-text-{color} to the wrapper. |
position | "left" | "right" | — | Position inside a Bulma input control. |
class | string | — | Extra classes on the wrapper span. |