StylishCommandItem

data class StylishCommandItem(val label: String, val onSelect: () -> Unit, val icon: @Composable () -> Unit? = null, val keywords: List<String> = emptyList(), val enabled: Boolean = true)

One selectable entry of a StylishCommandPalette.

Constructors

Link copied to clipboard
constructor(label: String, onSelect: () -> Unit, icon: @Composable () -> Unit? = null, keywords: List<String> = emptyList(), enabled: Boolean = true)

Properties

Link copied to clipboard

When false, the entry is not selectable.

Link copied to clipboard
val icon: @Composable () -> Unit?

Optional leading icon.

Link copied to clipboard

Extra search terms matched in addition to label.

Link copied to clipboard

The display text of the entry.

Link copied to clipboard
val onSelect: () -> Unit

Called when the entry is chosen (click or Enter).