You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there possibility to add (or maybe it exists) to check which of items is open or not?
export interface AccordionProps {
items: ReadonlyArray;
duration: number;
multiple: boolean;
}
may contain an another active prop for an array of open props (by indexes).
The text was updated successfully, but these errors were encountered:
@vaneatka if I understand this correctly, you would like to specify which items are open initially, right?
If yes, please check if the linked PR works for you.
I've updated the documentation. You can check it out here
@vaneatka this has been released and is available to download from NPM and Github.
For more info please see the release notes
Thank you for your contribution. 🎉
@scriptex thank you, basically the main purpose of my question was, to have a possibility to check which item is open...
To be able to switch the / (down) caret to /\ (up). In order to show open/close possibility.
@vaneatka you could have done this by using the aria-expanded attribute in your CSS. If you are looking for an alternative solution, please show me your use case and I will try to help 🙂
Is there possibility to add (or maybe it exists) to check which of items is open or not?
export interface AccordionProps {
items: ReadonlyArray;
duration: number;
multiple: boolean;
}
may contain an another active prop for an array of open props (by indexes).
The text was updated successfully, but these errors were encountered: