Skip to content

Icons

vue-toastflow exports icon components used by default toast types.

Exported Icons

  • ArrowPath
  • Bell
  • CheckCircle
  • InfoCircle
  • QuestionMarkCircle
  • XCircle
  • XMark

Default Type Mapping

Toast typeDefault icon
loadingArrowPath
defaultQuestionMarkCircle
successCheckCircle
errorXCircle
warningBell
infoInfoCircle

Replace Icons

Use Toast icon slot:

vue
<ToastContainer v-slot="{ toast, dismiss }">
  <Toast :toast="toast" @dismiss="dismiss">
    <template #icon>
      <MyIcon class="my-icon" aria-hidden="true" />
    </template>
  </Toast>
</ToastContainer>

Use close-icon slot to replace the close glyph.

  • Card slots and component behavior: Toast
  • CSS token system for icon colors: Theming