Package-level declarations

Types

Link copied to clipboard
data class KwikAccordionItem(val title: String, val content: String, val hasError: Boolean = false)

Data class representing an item in the accordion. Contains a title, content, and an optional error state.

Functions

Link copied to clipboard
fun KwikAccordion(title: String, headerIcon: Int? = null, containerColor: Color = MaterialTheme.colorScheme.surface, elevation: Int = 8, expanded: Boolean, headerTextColor: Color = MaterialTheme.colorScheme.onSurface, isError: Boolean = false, @DrawableRes errorIcon: Int? = null, onExpandedChange: (Boolean) -> Unit, content: @Composable () -> Unit)

Accordion component that can be expanded or collapsed.

Link copied to clipboard
fun <T> KwikAccordionGroup(allowMultipleExpanded: Boolean = true, initialExpandedIndices: List<Int> = emptyList(), items: List<T>, titleProvider: (T) -> String, headerIconProvider: (T) -> Int?? = null, containerColor: Color = MaterialTheme.colorScheme.surface, elevation: Int = 8, headerTextColor: Color = MaterialTheme.colorScheme.onSurface, errorProvider: (T) -> Boolean? = null, @DrawableRes errorIcon: Int? = null, content: @Composable (T) -> Unit)

AccordionGroup component that manages a group of accordions. Can be configured to allow multiple accordions to be expanded at once or only one at a time.