GroupedGridItem
data class GroupedGridItem(val title: String, val icon: ToolkitIcon, val subtitle: String? = null, val iconShape: Shape? = null, val iconContainerColor: Color = Color.Unspecified, val iconContentColor: Color = Color.Unspecified, val enabled: Boolean = true, val onClick: () -> Unit)(source)
One cell of a GroupedGrid: what it shows, how its badge is cut, and what tapping it does.
iconShape, iconContainerColor and iconContentColor are per-cell overrides. Leaving them unset draws the cell with the grid's shared shape and colors, which is what a set of peers such as storage buckets or quick actions wants; setting them lets one cell stand out, for example a category badge cut from a different MaterialShapes silhouette than its neighbours.
Properties
Link copied to clipboard
Glyph drawn inside the badge. Any ToolkitIcon source is accepted, animated vectors and bundled Lottie included.
Link copied to clipboard
Badge fill. Color.Unspecified uses the grid's color.
Link copied to clipboard
Glyph tint. Color.Unspecified uses the grid's color.