accordion

@Composable
fun IComponent.accordion(flush: Boolean = false, alwaysOpen: Boolean = false, openedIndex: Int = 0, className: String? = null, id: String? = null, content: @Composable IAccordion.() -> Unit)

Creates an Accordion component.

Parameters

flush

determines if the accordion has no rounded corners

alwaysOpen

determines if the accordion items are automatically closing

openedIndex

the index of the initially opened item

className

the CSS class name

id

the ID attribute of the accordion

content

the content of the accordion