SelectOption

expect fun SelectOption(text: @Composable (Modifier) -> Unit, onClick: () -> Unit, valueJsDom: String, modifier: Modifier = Modifier, leadingIcon: @Composable (Modifier) -> Unit? = null, trailingIcon: @Composable (Modifier) -> Unit? = null, enabled: Boolean = true)(source)

Material Design select option.

Should be used within FilledSelect or OutlinedSelect.

Parameters

text

corresponds to the headline slot on JS DOM in Material Web.

valueJsDom

the HTML form key value attribute. By convention this should be a code-like identifier (no spaces), distinct from any natural-language display string. Also see the valueJsDom parameter in FilledSelect and OutlinedSelect, which is used to identify the currently selected option.

See also

actual fun SelectOption(text: (Modifier) -> Unit, onClick: () -> Unit, valueJsDom: String, modifier: Modifier, leadingIcon: (Modifier) -> Unit?, trailingIcon: (Modifier) -> Unit?, enabled: Boolean)(source)
actual fun SelectOption(text: (Modifier) -> Unit, onClick: () -> Unit, valueJsDom: String, modifier: Modifier, leadingIcon: (Modifier) -> Unit?, trailingIcon: (Modifier) -> Unit?, enabled: Boolean)(source)

See also

MdSelectOption