flowbite
flowbite copied to clipboard
Feature: Accordion: Rotate icon by X degrees
Is your feature request related to a problem? Please describe.
I have an accordion where I want to rotate icons by 90 degrees on open, but the component has a hardcoded value of 180.
Describe the solution you'd like
It would be nice to have a data attribute on the icon element to set the degrees value, e.g. data-accordion-degrees='90'.
In Html Add a data-accordion-degrees attribute to the icon element to specify the rotation angle. CSS: Define styles for rotation using a CSS class and a CSS variable for flexibility. JS: add logic to read the data-accordion-degrees attribute and apply the rotation when the accordion is toggled.