Skip to content

Alert - Vue ​

Alerts show high-signal messages meant to be noticed and prompting users.

AndroidreleasedElementsreleasediOSreleasedReactreleasedReact 19releasedVuereleased

Vue ​

Import ​

Use in entire app

js
import { Alert } from '@warp-ds/vue';
app.use(Alert);

Use in one component and special imports

You can import the component like so:

js
import { wAlert } from '@warp-ds/vue';

or import it individually to optimize your JS bundle size by adding only the components you need:

js
import { wAlert } from '@warp-ds/vue/alert';

Syntax ​

vue
<w-alert v-model="showAlert" info title="I am a title">
  <p>I am an excellent message for the user.</p>
</w-alert>

Props ​

Optional Props ​

NameTypeDefaultDescription
v-modelbooleanundefinedControls when the alert shows
titlestringundefinedThe title for the alert
rolestringalertThe aria role for the alert
negativebooleanundefinedCreates a negative alert
positivebooleanundefinedCreates a positive alert
warningbooleanundefinedCreates a warning alert
infobooleanundefinedCreates an info alert

Questions? ​

Feel free to ask any questions on usage in the Warp DS Slack channel: #warp-design-system