Skip to content

Alert API

API reference docs for the Stash Alert component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import Alert from '@leaflink/stash/Alert.vue';

Props

NameTypeDefaultDescription
centeredbooleanfalseDetermines if the alert is centered
permanentbooleanfalseDetermines if the alert is permanent (doesn't have a close button).
radius"none" | "standard"standardThe type of border radius to use. Available types: - `none` - no border radius - `standard` - 4px border radius
severityStatusSeverityinfoThe type of alert. Available types: - `info` - `success` - `warning` - `error`
stickynumber | nullnullDetermines if the alert is sticky. By default, it's not sticky. The provided `number` value is a top offset of alert.
variant"outlined" | "filled"outlinedThe variant of alert. Available variants: - `filled` - previously alert component - `outlined` - previously banner component

Slots

NameDescription
default

Events

None