Skip to content

Chip

A chip component that represents compact information elements, choices, filters or actions.

The CustomChip widget provides a flexible way to display small interactive elements with various visual styles. Chips can include text labels, icons, avatars and support different states and interactions.

  • Types: Filled, Outline, Avatar variations
  • Content Types: Text with optional icons or avatar
  • States: Normal, Active, Disabled, Error
  • Customizable: Supports different styles, icons and full width mode

Basic chip with solid background.


Chip with transparent background and border.


Chip with an icon before the label.


Chip with an icon after the label.


Chip with a circular avatar image.


Non-interactive chip with disabled styling.


Chip indicating an error condition.


Chip that expands to fill container width.


PropertyTypeDescription
labelStringRequired. The text to be displayed in the chip.
prefixIconWidget?Widget to display before the label, typically an icon.
suffixIconWidget?Widget to display after the label, typically an action icon.
avatarString?URL of an avatar image to display at the start of the chip.
typeChipTypeVisual style variant of the chip (filled, outline, etc). Default: filled.
stateChipStateInteraction state affecting appearance (enabled, disabled, error, etc). Default: enabled.
isActiveboolWhether the chip is in selected/active state. Changes colors when true. Default: false.
fullWidthboolMakes the chip expand to fill container width. Default: false.
onPressedVoidCallback?Callback function when the chip is tapped. If null, chip appears disabled.