Using
far
or fad
while having FontAwesome free tier might have missing icons.
Buefy is compatible with both Material Design Icons
, FontAwesome 4
and FontAwesome 5 but you can also add your custom icon pack.
They adapt to most elements background automatically — but you can also override their colors.
# Material Design Icons
# FontAwesome
# Object syntax
You can also use object syntax for type
props just like Vuejs class
.
# Custom Icon Pack
You can also add your own custom font (Ionicons is used in this example).
Can also customize some properties of the default icon packs. In this example, default sizes for FontAwesome have been modified.
Name | Description | Type | Values | Default |
---|---|---|---|---|
type | Type (color) of the icon, optional | String, Object | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | — |
pack | Icon pack to use | String | mdi , fa , fas , far , fad , fal | mdi |
icon | Icon name | String | — | — |
size | Icon size, optional | String | is-small , is-medium , is-large | — |
custom-size | Overrides icon font size, optional | String | Depends on library: null (smallest), fa-lg , fa-2x , fa-3x ,
fa-4x , fa-5x ,
mdi-18px , mdi-24px , mdi-36px , mdi-48px | Depends on size prop |
custom-class | Add class to icon font (<i> tag), optional.
See here for MDI,
here for FontAwesome 4 and
here for FontAwesome 5 custom classes | String | — | — |
This page is open source. Noticed a typo or something's unclear?