accordionRef

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

Creates an Accordion component, returning a reference.

Return

the 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