API reference

BorderedIconButton Function

A bordered icon button is a medium-emphasis button with only an icon, a transparent background, and a thin border. Use for actions that need more emphasis than a borderless icon button.

Signature

fun BorderedIconButton(
    icon: () -> Unit,
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    colors: BorderedButtonColors = BorderedButtonDefaults.colors(),
    borderColor: Color?,
    isEnabled: Boolean = true,
    expanded: Boolean = false,
)

Parameters

icon: () -> Unit The icon to display on the button.
onClick: () -> Unit The callback to be invoked when the button is clicked.
modifier: Modifier Modifier to be applied to the button.
colors: BorderedButtonColors The colors to use for different states of the button.
borderColor: Color? The color of the border. If null, uses the default bordered border color.
isEnabled: Boolean Whether the button is enabled or not. Defaults to true.
expanded: Boolean Whether the button should be expanded or not. Defaults to false.