KwikChip

fun KwikChip(text: String, isSelected: Boolean = false, onClick: () -> Unit = {}, onLongPress: (Boolean) -> Unit = {}, selectedContainerColor: Color = MaterialTheme.colorScheme.surface, unselectedContainerColor: Color = if(isSystemInDarkTheme()) Color.DarkGray else Color.LightGray, selectedContentColor: Color = Color.White, unselectedContentColor: Color = if(isSystemInDarkTheme()) Color.White else Color.Black, border: BorderStroke? = null, shape: Shape = MaterialTheme.shapes.extraLarge, leadingIcon: @Composable () -> Unit? = { null })

A chip component

Parameters

text

String text to be displayed

isSelected

Boolean if the chip is selected or not

onClick

() -> Unit called when the chip is clicked

onLongPress

() -> Unit called when the chip is long pressed

selectedContainerColor

Color of the chip when selected

unselectedContainerColor

Color of the chip when unselected

selectedContentColor

Color of the text when selected

unselectedContentColor

Color of the text when unselected

border

BorderStroke? border stroke of the chip

shape

Shape shape of the chip