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
Name | Type | Default | Description |
---|---|---|---|
centered | boolean | false | Determines if the alert is centered |
permanent | boolean | false | Determines if the alert is permanent (doesn't have a close button). |
radius | "none" | "standard" | standard | The type of border radius to use. Available types: - `none` - no border radius - `standard` - 4px border radius |
severity | StatusSeverity | info | The type of alert. Available types: - `info` - `success` - `warning` - `error` |
sticky | number | null | null | Determines if the alert is sticky. By default, it's not sticky. The provided `number` value is a top offset of alert. |
variant | "outlined" | "filled" | outlined | The variant of alert. Available variants: - `filled` - previously alert component - `outlined` - previously banner component |
Slots
Name | Description |
---|---|
default | |
link |
Events
None