Skip to main content

Badge

Settings​

SettingIDTypeDefaultDescription
Block classclasstextmb-2
Badge texttitletextBadge
Bold textenble_boldcheckboxfalse
Imageimageimage_picker
Image classimage_widthtextw-4 h-4
ColorstyleselectprimaryCustom applies the Custom style settings below.
Custom colorbgcolor_background#f3f4f6Solid color or gradient with transparency. Shown when Style is Custom.
Custom text colortext_colorcolor_background#111827
Size (mobile)text_size_mobselecttext-sm
Size (desktop)text_sizeselecttext-base
Badge classpadtextpx-2 py-1Tailwind padding classes. Spacing scale: 0-10, plus 15 and 20. Example: px-2 py-1.
Shaperadiusselectrounded-full
Border widthborderrange0
Border colorborder_colorcolor_background#d1d5dbSolid color or gradient, e.g. linear-gradient(to right, #066fd1, #2fb344).
Border offsetborder_offsetrange0Moves the border ring outward, leaving a gap to the badge edge like a detached outline.
Shadowshadowselectshadow-none
Shadow lengthshadow_lengthrange5When shadow is [Cubic].
Shadow colorshadow_colorcolor#000000When shadow is [Cubic].
Positionpositionselectstatic
Left offsetposition_xrange0
Top offsetposition_yrange0
Left offset (mobile)position_x_mobrange0
Top offset (mobile)position_y_mobrange0
Rotationrotationrange0
Translate Xtranslatexrange0
Translate Ytranslateyrange0
Alignment (desktop)alignmenttext_alignmentleft
Alignment (mobile)alignment_mobtext_alignmentleft

Option values​

  • Color (style): Primary (primary), Secondary (secondary), Success (success), Warning (warning), Danger (danger), Base text (base-text), Heading text (heading-text), Black (black), White (white), Gray 100 (gray-100), Gray 200 (gray-200), Gray 300 (gray-300), Gray 400 (gray-400), Gray 500 (gray-500), Gray 600 (gray-600), Gray 700 (gray-700), Gray 800 (gray-800), Gray 900 (gray-900), Random (random), Custom (custom)
  • Size (mobile) (text_size_mob): 3 Extra Small (text-3xs), 2 Extra Small (text-2xs), Extra Small (text-xs), Small (text-sm), Medium (text-base), Large (text-lg), Extra Large (text-xl), 2X Large (text-2xl), 3X Large (text-3xl), 4X Large (text-4xl), 5X Large (text-5xl), 6X Large (text-6xl), 7X Large (text-7xl), 8X Large (text-8xl), 9X Large (text-9xl)
  • Size (desktop) (text_size): 3 Extra Small (text-3xs), 2 Extra Small (text-2xs), Extra Small (text-xs), Small (text-sm), Medium (text-base), Large (text-lg), Extra Large (text-xl), 2X Large (text-2xl), 3X Large (text-3xl), 4X Large (text-4xl), 5X Large (text-5xl), 6X Large (text-6xl), 7X Large (text-7xl), 8X Large (text-8xl), 9X Large (text-9xl)
  • Shape (radius): Square (rounded-none), Rounded small (rounded-md), Rounded medium (rounded-xl), Rounded large (rounded-2xl), Rounded extra large (rounded-3xl), Squircle (rounded-squircle), Circle (rounded-circle), Pill (rounded-full), Rounded top (rounded-top), Rounded bottom (rounded-bottom), Single corner (rounded-corner), Diagonal corners (rounded-diagonal), Arch (rounded-arch), Dome (rounded-dome), Cylinder (rounded-cylinder), Barrel (rounded-barrel), Leaf pointed (rounded-leaf-point), Leaf (rounded-leaf), Lens (rounded-lens), Petal (rounded-petal), Egg (rounded-egg), Egg inverted (rounded-egg-inverted), Shield (rounded-shield), Drop (rounded-drop), Diamond (rounded-diamond), Blob (rounded-blob), Amoeba (rounded-amoeba), Flower (rounded-flower), Mountain (rounded-mountain), Pebble (rounded-pebble), Bean (rounded-bean), Cloud (rounded-cloud)
  • Shadow (shadow): None (shadow-none), Default (shadow), Small (shadow-sm), Medium (shadow-md), Large (shadow-lg), Cubic (shadow-cubic)
  • Position (position): In flow (static), Absolute (absolute)