Set default type to primary for alert
This commit is contained in:
parent
2f7bd6188a
commit
af1416ae81
1 changed files with 2 additions and 2 deletions
|
@ -41,11 +41,11 @@
|
||||||
:data-bs-dismiss "alert"
|
:data-bs-dismiss "alert"
|
||||||
:aria-label "Close")))
|
:aria-label "Close")))
|
||||||
|
|
||||||
(defmacro alert ((&key (type nil) (dismissible nil)) &body body)
|
(defmacro alert ((&key (type "primary") (dismissible nil)) &body body)
|
||||||
"This macro generates a Bootstrap alert component.
|
"This macro generates a Bootstrap alert component.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
- TYPE: Specifies the alert type. Can be 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', or 'dark'.
|
- TYPE: Specifies the alert type. Can be 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', or 'dark'. Defaults to 'primary'.
|
||||||
- DISMISSIBLE: Specifies whether the alert is dismissible. If true, the alert includes a close button.
|
- DISMISSIBLE: Specifies whether the alert is dismissible. If true, the alert includes a close button.
|
||||||
- BODY: Specifies the content of the alert."
|
- BODY: Specifies the content of the alert."
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue