Toolbar Item Indication
How a toolbar item shows that it is pressed, hovered, focused or selected: the shape its ripple, hover state layer and selection highlight are all clipped to, and the rippleColor of that ripple.
One value serves both bars — NutrientMainToolbar(itemIndication = …) and NutrientContextualToolbar(itemIndication = …) — and reaches every NutrientToolbarItemButton inside them through LocalToolbarItemIndication: the SDK's own items, a host's slot content and the contextual bar's submenu sheet alike. The overflow ⋮ menu is a Material DropdownMenu and keeps Material's own indication.
NutrientMainToolbar(
coordinator,
shape = RoundedCornerShape(28.dp),
itemIndication = ToolbarItemIndication(shape = CircleShape, rippleColor = Color.White),
)Content copied to clipboard
Properties
Link copied to clipboard
The ripple's color; Color.Unspecified leaves it to Material's ripple default.