Usage
Use theUAlert component to display alert messages with various styles and configurations.
Props
as
- Type:
any - Default:
'div'
title
- Type:
string
description
- Type:
string
icon
- Type:
string(Iconify icon name)
avatar
- Type:
AvatarProps
color
- Type:
string - Default:
'primary'
primary, neutral, or any custom color from your theme.
variant
- Type:
'solid' | 'outline' | 'soft' | 'subtle' - Default:
'solid'
orientation
- Type:
'vertical' | 'horizontal' - Default:
'vertical'
actions
- Type:
ButtonProps[]
orientation is vertical, or next to the close button when orientation is horizontal.
close
- Type:
boolean | Omit<ButtonProps, LinkPropsKeys> - Default:
false
update:open event with false.
closeIcon
- Type:
string(Iconify icon name) - Default:
appConfig.ui.icons.close
class
- Type:
any
ui
- Type:
object
root- The root containerwrapper- The content wrappertitle- The title elementdescription- The description elementicon- The icon elementavatar- The avatar elementavatarSize- The avatar sizeactions- The actions containerclose- The close button
Events
update:open
- Type:
(value: boolean) => void
Slots
leading
- Props:
{ ui: Alert['ui'] }
title
Customize the title content.description
Customize the description content.actions
Customize the actions section.close
- Props:
{ ui: Alert['ui'] }