Skip to content

FeedbackAlert ​

A message with a status, that can be dismissed.

ts
import { FeedbackAlert } from '@zairakai/vue-components/Feedback'

Usage ​

vue
<FeedbackAlert />

Example ​

Saved

Your changes were saved.
vue
<template>
  <FeedbackAlert
    variant="success"
    title="Saved"
    dismissible
    >Your changes were saved.</FeedbackAlert
  >
  <FeedbackAlert
    variant="error"
    title="Failed"
    >Something went wrong.</FeedbackAlert
  >
</template>

Props ​

NameTypeDefaultDescription
idstring
classstring
modelValuebooleanundefinedWhether the alert is shown. Use it with v-model, it works without too.
variantstring'info'
titlestring
dismissiblebooleanfalse
closeLabelstring'Close'

Events ​

NameDescription
update:modelValue
close

Slots ​

NameDescription
icon
title
default
actions
close

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.