You can use a link and button with the href attribute (and a role="button"). In both cases, the data-bs-toggle="collapse"
is required.
A button
or a
can show and hide multiple elements by referencing them with a selector in its href or data-bs-target attribute. Multiple button
or a
can show and hide an element if they each reference it with their href or data-bs-target attribute
Here is the example of collapse in which the icon is wrapped within the button collapse toggle.