Skip to content
badge
AutoXXS (320px)XS (375px)SM (640px)MD (768px)LG (1024px)XL (1280px)XXL (1536px)
SketchMaterialiOSTamagui
DataInjectionKeyPatternsServiceTransactionProcessResearchProductQualityPerformanceSpecDomainFunctionTechnologyArchitectureConfigMiddlewareDataDatabaseDrizzleMigrationModelop-sqliteSchemaSQLState ManagementDraftKeystoneMergePatchPatchesPersistenceReactiveRedoStoreUndoTestingDeviceFactoryIsolationTypeScriptZodTopicsCommunicationBidsNVCDesignDesign ImplicationsEducationPedagogyFoundationsPsychologyAttachmentFloodingRelatingAuthentic RelatingUIEditorReact Native

badge

Fragment reference badge
tags
ui

Badges are used to draw attention and display statuses or counts.

Usage

badge Badge

Variants

Set the variant attribute to change the badge’s theme.

badge(variant="brand") Brand
badge(variant="success") Success
badge(variant="warning") Warning
badge(variant="danger") Danger

Appearance

Use the appearance attribute to change the badge’s visual appearance.

badge(appearance="filled" variant="neutral") Filled
badge(appearance="outlined" variant="neutral") Outlined

Pill Badges

Use the pill attribute to give badges rounded edges.

badge(variant="brand" pill) Brand

Start & End Decorations

Use the icon attribute to add presentational elements alongside the badge’s label.

badge(icon="acorn") Start

Attributes

NameTypeDefaultDescription
variantbrand | neutral | success | warning | dangerbrandThe badge’s theme variant.
appearanceaccent | filled | outlined | filled-outlinedaccentThe badge’s visual appearance.
pillbooleanfalseDraws a pill-style badge with rounded edges.
attentionnone | pulse | bouncenoneAdds an animation to draw attention.