Components
AxTag
Semantic tag component with 5 preset tones, dot indicators, pill shapes, and solid fills.Props
Extends all Ant Design Tag props.Semantic tone that maps to a color preset and dot color. Enables a dot indicator by default.
"success"— green (completed, delivered, awarded, in stock…)"info"— blue (processing, in review, in transit…)"warning"— orange (not awarded, low stock, needs refresh…)"error"— red (cancelled, rejected, withdrawn…)"neutral"— gray (pending, draft, expired…)
Show a colored dot indicator before the label. Automatically enabled when
tone is set. Pass false to suppress it.Custom dot color. Overrides the preset dot color from
tone. Pass any CSS color value.Pill-shaped tag with rounded corners (border-radius: 16px).
Solid fill background color with white text and no border. Pass a hex/color string or CSS variable.Example:
fill="#52C41A" renders a solid green tag with white text.Small tag variant (fontSize: 11px, compact padding). Useful for inline badges like “Be first to bid!” or “+3 more”.
Type Definitions
Tone Presets
Usage
In Tables
AxCountryTags
Displays a list of country flags with names, with overflow handling.Props
Country names or ISO alpha-2 codes (e.g.,
"Kenya", "KE", "Nigeria").Supports common country names and 2-letter ISO codes. Automatically resolves to flag emojis.Maximum number of tags shown inline before collapsing to “+N more”.
Size variant.
Additional class name.
Type Definitions
Supported Countries
Supports common country names and ISO alpha-2 codes:- Africa: Kenya, Nigeria, Ghana, Tanzania, Uganda, Ethiopia, Rwanda, Zambia, Zimbabwe, South Africa, Egypt, Morocco, Senegal, Ivory Coast, Cameroon, Mozambique, Angola, DRC, Mali, Malawi, Botswana, Namibia
- Global: India, China, USA, UK, Germany, France, Brazil, Pakistan, Bangladesh, Indonesia
Usage
Overflow Tooltip
When more thanmax countries are provided, the overflow tags are hidden and shown in a tooltip on hover over the “+N more” indicator.