Pills

A flexible row of tag-style pills for categories, filters, or labels.

Usage

Pills displays a row (or column) of tag-style labels β€” useful for categories, filters, skills, status tags, or any compact list of short text items. Each Pill child can be plain text or a link, with its own color and optional indicator dot.

Parent Pills controls layout and shared styling for every pill in the group. Select an individual Pill to edit its label, URL, color, and indicator.

Parent and child blocks

The Pills parent holds one or more Pill children (ds/pill). Add pills with the block inserter or duplicate an existing pill.

Select Pills for layout and group-wide pill styling. Select a Pill child for text, link, color, and indicator settings.

Layout (parent)

  • Justify β€” Start, Center, End, or Space Between
  • Orientation β€” Horizontal (default) or Vertical
  • Gap β€” spacing between pills in rem steps (0–12)

Pill style (parent)

These settings apply to every pill in the group via shared CSS variables:

  • Quick-Set Color β€” applies a color preset to every existing pill in the group (Primary, Secondary, Accent, Variant, Gray, White, Black, or Transparent). Individual pills can still be changed afterward. Newly added pills start as Primary until you quick-set again or edit that pill.
  • Padding X / Padding Y β€” internal spacing in em
  • Font Size β€” text size in em (0.5–2)
  • Border Radius β€” Square, Rounded, or Full (pill-shaped, default)
  • Border Width β€” outline thickness in pixels (0–4)
  • Font Weight β€” 100–900 in steps of 100
  • Text Transform β€” Normal, Uppercase, Title Case, or Lowercase

Individual pills (child)

Select a Pill to configure:

  • Text β€” edit inline in the editor; bold (<strong>) is allowed from the formatting toolbar. Ampersands in labels are stored as & (WordPress JSON escapes are repaired on open).
  • URL β€” optional link (sidebar URL field or Link toolbar button). Without a URL the pill renders as a <div>; with a URL it becomes an <a>.
  • Color β€” Primary, Secondary, Accent, Variant, Gray, White, Black, or Transparent (transparent fill with a gray outline; set parent Border Width to 0 for no outline)
  • Show Indicator β€” animated dot before the label, useful for live/active status

Block width

Pills supports Wide and Full alignment from the block toolbar.

Tips

  • Use Space Between justify for filter bars that span the full width of a container.
  • Show Indicator with a pulse animation works well for "Live" or "New" status tags.
  • Set Orientation to Vertical for sidebar tag lists or stacked filters on mobile-first layouts.
  • Parent padding and typography controls keep a long pill list visually consistent β€” use Quick-Set Color to match every pill, then override individual pills when items need different emphasis.

Screenshots

Front-end

  • Four pills beside copy in a columns layout β€” mixed color presets including a transparent outlined Cancel Anytime pill.

Editor

  • Parent Pills selected β€” Layout panel with Justify, Orientation, Gap, and the start of Pill Style.
  • Pill Style panel β€” Quick-Set Color, Padding, Border Radius Full, Font Weight 700, and Text Transform.

Settings

Layout

Justify setting in the block editor sidebar
Justify

Horizontal alignment of the pill row β€” start, center, end, or space between.

  • Startdefault
  • Center
  • End
  • Space Between
Orientation setting in the block editor sidebar
Orientation

Horizontal row (default) or vertical stack.

  • Horizontaldefault
  • Vertical
Gap setting in the block editor sidebar
Gap

Space between pills in 0.25rem steps (0–12).

Pill Style

Quick-Set Color
  • Primary
  • Secondary
  • Accent
  • Variant
  • Gray
  • White
  • Black
  • Transparent
Padding X setting in the block editor sidebar
Padding X

Horizontal padding inside each pill, in 0.25em steps (0–12). Applies to all pills in the group.

Padding Y setting in the block editor sidebar
Padding Y

Vertical padding inside each pill, in 0.25em steps (0–12). Applies to all pills in the group.

Font Size setting in the block editor sidebar
Font Size

Text size inside each pill in em units (0.5–2).

Border Radius setting in the block editor sidebar
Border Radius

Corner shape for all pills β€” square, rounded, or full (pill-shaped, default).

  • Square
  • Rounded
  • Fulldefault
Border Width setting in the block editor sidebar
Border Width

Border thickness around each pill in pixels (0–4).

Font Weight setting in the block editor sidebar
Font Weight

Font weight for pill text (100–900, step 100).

Text Transform setting in the block editor sidebar
Text Transform

Capitalization for all pill labels β€” normal, uppercase, title case, or lowercase.

  • Normaldefault
  • Uppercase
  • Title Case
  • Lowercase