2023-07-01 16:30:10 +02:00
|
|
|
(in-package :cl-sbt)
|
|
|
|
|
2023-07-08 12:49:10 +02:00
|
|
|
(defmacro accordion-header (&body body)
|
|
|
|
`(spinneret:with-html
|
|
|
|
(:h2 :class "accordion-header"
|
2023-07-01 16:30:10 +02:00
|
|
|
(:button :class "accordion-button"
|
|
|
|
:type "button"
|
|
|
|
:data-bs-toggle="collapse"
|
|
|
|
:data-bs-target="#collapseOne"
|
|
|
|
:aria-expanded="true"
|
|
|
|
:aria-controls="collapseOne"
|
2023-07-08 12:49:10 +02:00
|
|
|
,@body))))
|
|
|
|
|
|
|
|
(defmacro accordion-item (&body body)
|
|
|
|
`(spinneret:with-html
|
|
|
|
(:div :class "accordion-item"
|
|
|
|
,@body)))
|
2023-07-01 16:30:10 +02:00
|
|
|
|
2023-07-08 12:49:10 +02:00
|
|
|
(defmacro accordion ((&key (id nil)) &body body)
|
2023-07-01 16:30:10 +02:00
|
|
|
`(spinneret:with-html
|
|
|
|
(:div :class "accordion"
|
2023-07-08 12:49:10 +02:00
|
|
|
:id ,id
|
|
|
|
,@body)))
|