Set default type to primary for alert

This commit is contained in:
Marcus Kammer 2023-07-11 16:31:35 +02:00
parent 2f7bd6188a
commit af1416ae81

View file

@ -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."