Skip to content

Alert

PropData typeRequired?DefaultDescription
colorblue | red | purple | green | yellowNosecondaryThe color of the alert container

Alert colors

Funkwhale alerts support a range of pastel colors for visual appeal.

Colors
  • Red
  • Blue
  • Purple
  • Green
  • Yellow

Blue

template
<fw-alert color="blue">
  Blue alert
</fw-alert>
Blue alert

Red

template
<fw-alert color="red">
  Red alert
</fw-alert>
Red alert

Purple

template
<fw-alert color="purple">
  Purple alert
</fw-alert>
Purple alert

Green

template
<fw-alert color="green">
  Green alert
</fw-alert>
Green alert

Yellow

template
<fw-alert color="yellow">
  Yellow alert
</fw-alert>
Yellow alert

Alert actions

template
<fw-alert>
  Awesome artist

  <template #actions>
    <fw-button>Got it</fw-button>
  </template>
</fw-alert>
Awesome artist