Skip to content

Alert

An inline alert message that displays important information to the user. Supports multiple types and display styles.

Basic Usage

vue
<template>
  <see-alert type="success" title="Success" content="Operation completed successfully." />
  <see-alert type="error" title="Error" content="Something went wrong." />
  <see-alert type="warning" title="Warning" content="Please check your input." />
  <see-alert type="info" title="Info" content="Here is some information." />
</template>

Props

PropTypeDefaultDescription
typestring'info'Alert type: success, error, warning, info
titlestring''Alert title
contentstring''Alert body content
effectstring'light'Display style: light, dark, border
isClosablebooleantrueWhether to show close button
isShowIconbooleantrueWhether to show type icon
isCollapsiblebooleanfalseWhether content is collapsible
actionTextstring''Custom action button text
isShowbooleantrueWhether to show the alert

Events

EventParametersDescription
onClose-Triggered when alert is closed
onAction-Triggered when action button is clicked
update:isShow(value: boolean)Triggered when show state changes

Liao ICP No. 2025070134