Add comment to accordion macro

This commit is contained in:
Marcus Kammer 2024-02-03 18:56:58 +01:00
parent 44f8fe0b43
commit 176cea492b

View file

@ -99,6 +99,12 @@ Example:
(collapse ,id ,target ,show ,content)))))))
(defmacro accordion ((&key id flush) &body body)
"This macro generates an accordion-style collapsible list with Bootstrap.
ID: Specifies a unique identifier for the accordion. Defaults to 'accordionExample'.
Example:
(accordion (:id \"accordionExample\" :flush t) (\"foo\" \"bar\"))"
(let ((class (concatenate 'string "accordion" (when flush " accordion-flush"))))
`(spinneret:with-html
(:div :class ,class