Skip to content

Tag

A Tag is a compact visual indicator used to represent status, category, or metadata associated with an element. It helps users quickly scan, identify, or filter information in an interface.

Use this component when you need to communicate contextual information such as system state, item classification, or feedback message type.

Common alternative names:
Status Pill, Badge Label, Indicator


Default tag style.


Tag with success styling.


Tag with warning styling.


Tag with error styling.


Tag with info styling.


Tag including an icon alongside the label.


PropertyTypeDescription
labelStringRequired. The text to display in the badge.
paddingEdgeInsetsGeometry?Custom padding for the badge content. Default: horizontal: 8, vertical: 5
offsetOffset?Position offset for the badge when used with a child widget.
backgroundColorColor?Custom background color. If not provided, uses the type’s default color.
textColorColor?Custom text color. If not provided, uses the type’s default color.
textStyleTextStyle?Custom text style.
alignmentAlignmentGeometry?Alignment of the badge when used with a child widget.
childWidget?Optional child widget that the badge will be attached to.
iconWidget?Optional icon to display before the label text.