Alert

Last modified by Pierre Jeanjean on 2024/10/28 11:32

Implementations

<x-alert
 title="title"
 type="success"
 description="description"
 :actions="[
    { name: 'action 1', callback: () => {} },
    { name: 'action 2', callback: () => {} },
  ]"

></x-alert>
<x-alert
 title="title"
 type="warning"
 description="description"
 :actions="[
    { name: 'action 1', callback: () => {} },
    { name: 'action 2', callback: () => {} },
  ]"

></x-alert>
<x-alert
 title="title"
 type="error"
 description="description"
 :actions="[
    { name: 'action 1', callback: () => {} },
    { name: 'action 2', callback: () => {} },
  ]"

></x-alert>
<x-alert
 title="title"
 type="info"
 description="description"
 :actions="[
    { name: 'action 1', callback: () => {} },
    { name: 'action 2', callback: () => {} },
  ]"

></x-alert>

Vuetify

vuetify.png

Shoelace

shoelace.png

API

/**
 * Props for the alert component.
 *
 * @since 0.11
 */

type AlertProps = {
  title?: string;
  type: "success" | "warning" | "error" | "info";
  description: string;
  actions?: [{ name: string; callback: () => void }];
};
France 2030 Logo

This project is being financed by the French State as part of the France 2030 program

Ce projet est financé par l’État Français dans le cadre de France 2030

  • Powered by XWiki 16.4.4-node2. Hosted and managed by XWiki SAS

Get Connected