Alert
# FxAlert
Displays important alert messages on pages.
# Attributes
| Parameter | Description | Type | Options | Default |
|---|---|---|---|---|
| title | Alert title | string | — | — |
| type | Alert type | string | success/warning/info/error | info |
| description | Auxiliary text. Can also be passed via default slot | string | — | — |
| closable | Whether alert can be closed | boolean | — | true |
| center | Whether text is centered | boolean | — | true |
| close-text | Custom close button text | string | — | — |
| show-icon | Whether to show icon | boolean | — | false |
| effect | Alert theme | string | light/dark | light |
# Slot
| Name | Description |
|---|---|
| — | Description content |
| title | Title content |
# Events
| Event Name | Description | Parameters |
|---|---|---|
| close | Triggered when alert is closed | — |
# Basic Usage
Non-floating elements on the page that won't disappear automatically.
Copy
# Themes
The Alert component provides two different themes: light and dark.
Copy
# Custom Close Button
Customize close button with text or other symbols.
Copy
# With Icon
Improves readability when indicating certain states.
Copy
# Centered Text
Use center property to horizontally center text.
Copy
# With Description
Contains title and content for more detailed alerts.
Copy
# With Icon and Description
Copy