Package-level declarations

Types

Link copied to clipboard

IconButtonIntent is used to define the intent of the icon buttons.

Link copied to clipboard
Link copied to clipboard

Component tokens for icon button components. Centralises the shape resolution so that icon button composables read from a single source of truth instead of inlining the lookup at every call site.

Functions

Link copied to clipboard
fun IconButtonContrast(icon: SparkIcon, onClick: () -> Unit, modifier: Modifier = Modifier, intent: IconButtonIntent = IconButtonDefaults.DefaultIntent, enabled: Boolean = true, isLoading: Boolean = false, size: IconButtonSize = IconButtonDefaults.DefaultSize, contentDescription: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, atEnd: Boolean = false)

Icon buttons help people take supplementary actions with a single tap. They’re used when a compact button is required, such as in a toolbar or image list.

Link copied to clipboard
fun IconButtonFilled(icon: SparkIcon, onClick: () -> Unit, modifier: Modifier = Modifier, intent: IconButtonIntent = IconButtonDefaults.DefaultIntent, enabled: Boolean = true, isLoading: Boolean = false, size: IconButtonSize = IconButtonDefaults.DefaultSize, contentDescription: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, atEnd: Boolean = false)

Icon buttons help people take supplementary actions with a single tap. They’re used when a compact button is required, such as in a toolbar or image list.

Link copied to clipboard
fun IconButtonGhost(icon: SparkIcon, onClick: () -> Unit, modifier: Modifier = Modifier, intent: IconButtonIntent = IconButtonDefaults.DefaultIntent, enabled: Boolean = true, isLoading: Boolean = false, size: IconButtonSize = IconButtonDefaults.DefaultSize, contentDescription: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, atEnd: Boolean = false)

Icon buttons help people take supplementary actions with a single tap. They’re used when a compact button is required, such as in a toolbar or image list.

Link copied to clipboard
fun IconButtonOutlined(icon: SparkIcon, onClick: () -> Unit, modifier: Modifier = Modifier, intent: IconButtonIntent = IconButtonDefaults.DefaultIntent, enabled: Boolean = true, isLoading: Boolean = false, size: IconButtonSize = IconButtonDefaults.DefaultSize, contentDescription: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, atEnd: Boolean = false)

Icon buttons help people take supplementary actions with a single tap. They’re used when a compact button is required, such as in a toolbar or image list.

Link copied to clipboard
fun IconButtonTinted(icon: SparkIcon, onClick: () -> Unit, modifier: Modifier = Modifier, intent: IconButtonIntent = IconButtonDefaults.DefaultIntent, enabled: Boolean = true, isLoading: Boolean = false, size: IconButtonSize = IconButtonDefaults.DefaultSize, contentDescription: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, atEnd: Boolean = false)

Icon buttons help people take supplementary actions with a single tap. They’re used when a compact button is required, such as in a toolbar or image list.