ChipVariant

sealed interface ChipVariant

Chips can be customized in various ways to effectively convey specific information.

Chip Variant Samples

Inheritors

Types

Link copied to clipboard
class Color(val color: Color) : ChipVariant

This variant includes a small circle with a color, which is often used in e-commerce to show the different colors a product comes in.

Link copied to clipboard
class Icon(val painter: Painter?) : ChipVariant

This variant includes an icon next to its text label to provide a visual cue that helps users quickly understand its purpose or category.

Link copied to clipboard
class Image(val painter: Painter) : ChipVariant

This variant includes a small, circular image next to its text label. The image adds visual context, which helps with recognition and personalization.