API reference
API reference
Select your platform
No SDKs available
No versions available

BorderedIconButton Function

Modifiers: final
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, colors: BorderedButtonColors = BorderedButtonDefaults.colors(), borderColor: Color?, isEnabled: Boolean = true, expanded: Boolean = false)

Parameters

icon: Function0
The icon to display on the button.
onClick: Function0
The callback to be invoked when the button is clicked.
modifier: Modifier
Modifier to be applied to the button.
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.
Did you find this page helpful?