ChipOutlined

fun ChipOutlined(text: String, modifier: Modifier = Modifier, intent: ChipIntent = ChipIntent.Basic, enabled: Boolean = true, leadingIcon: SparkIcon? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClick: () -> Unit = {})

A chip with no background but having a border

Parameters

text

The label for this chip

intent

The ChipIntent colors that will be used for the content and background of this chip in different states.

modifier

The Modifier to be applied to the component

enabled

controls the enabled state of this chip. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.

leadingIcon

The spark icon shown at the start of the tag

interactionSource

the MutableInteractionSource representing the stream of Interactions for this chip. You can create and pass in your own remembered instance to observe Interactions and customize the appearance / behavior of this chip in different states.

onClick

called when this chip is clicked


fun ChipOutlined(icon: SparkIcon, contentDescription: String, modifier: Modifier = Modifier, intent: ChipIntent = ChipIntent.Basic, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClick: () -> Unit = {})

A chip with no background but having a border

Parameters

icon

to draw inside the chip's content

intent

The ChipIntent colors that will be used for the content and background of this chip in different states.

contentDescription

text used by accessibility services to describe what this icon represents. This should always be provided unless this icon is used for decorative purposes, and does not represent a meaningful action that a user can take. This text should be localized, such as by using androidx.compose.ui.res.stringResource or similar.

modifier

The Modifier to be applied to the component

enabled

controls the enabled state of this chip. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.

interactionSource

the MutableInteractionSource representing the stream of Interactions for this chip. You can create and pass in your own remembered instance to observe Interactions and customize the appearance / behavior of this chip in different states.

onClick

called when this chip is clicked


fun ChipOutlined(modifier: Modifier = Modifier, intent: ChipIntent = ChipIntent.Basic, enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClick: () -> Unit = {}, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, content: @Composable RowScope.() -> Unit)

A chip with no background but having a border

Parameters

intent

The ChipIntent colors that will be used for the content and background of this chip in different states.

modifier

The Modifier to be applied to the component

enabled

controls the enabled state of this chip. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.

interactionSource

the MutableInteractionSource representing the stream of Interactions for this chip. You can create and pass in your own remembered instance to observe Interactions and customize the appearance / behavior of this chip in different states.

onClick

called when this chip is clicked

content

a Composable to set as the chip's custom content.