Skip to content

Type to search the docs, API, and blog.

↑↓ navigate↵ openesc close
  • Zazz 0.14 alpha

    API

    Flexbox and grid

    Tracks, placement, gaps, and alignment.

    Grid tracks take a count (--grid-cols: 3 is three equal tracks); a raw track list goes in --template-cols. Place with --col-span, --col-start, --col-end and the --row-* twins, or write --col-start: 1; --col-end: -1 to span every track. Inside a layout, --band: layout-md places a child in a band.

    Four --display keywords are grids that bring their own tracks: subgrid, subgrid-col, and subgrid-row take them from the parent grid, and grid-gallery works out its column count from its child count. The flex directions are display keywords too (flex-col, flex-row-reverse). The display page has the rules and an example of each.

    --display: grid (and inline-grid) packs its rows at the top: it defaults to place-content: start stretch, so a grid taller than its content keeps its rows at their content height instead of stretching them to fill the extra height. Rows sized with fr fill it either way. Any --place-content, at the base or a breakpoint, replaces the default (--place-content: center). It also stays off where the rows need that extra height to center something: on an element with --place-items or --items, on a grid-pile, and on primitives, which keep the browser's normal. Two cases keep normal too and may need the pair written out:

    • A grid set only at a breakpoint (--display--md: grid). Add --place-content: start stretch if its rows stretch.
    • A child placed with --self: center or --self: end. Add --place-content: normal to its grid so the row fills the height again.

    Reference

    Flexbox and grid utilities
    UtilityWritesValueTiersNotes
    --flex-wrapflex-wrapkeywordbreakpointsworks tier-only
    --flexflexany CSS valuebreakpointsworks tier-only
    --basisflex-basisany CSS valuebreakpointsworks tier-only
    --shrinkflex-shrinkany CSS valuebreakpointsworks tier-only
    --orderorderany CSS valuebreakpointsworks tier-only
    --grid-colsgrid-template-columnstrack count (equal tracks)breakpointsworks tier-only
    --grid-rowsgrid-template-rowstrack count (equal tracks)breakpointsworks tier-only
    --template-colsgrid-template-columnsany CSS valuebreakpoints, statesworks tier-only
    --template-rowsgrid-template-rowsany CSS valuebreakpoints, statesworks tier-only
    --grid-fitgrid-template-columnsminimum track length (auto-fit columns)breakpoints
    --grid-flowgrid-auto-flowkeywordbreakpointsworks tier-only
    --auto-colsgrid-auto-columnsany CSS valuebreakpointsworks tier-only
    --auto-rowsgrid-auto-rowsany CSS valuebreakpointsworks tier-only
    --bandgrid-columnany CSS valuebreakpointsworks tier-only
    --col-spangrid-columnspan countbreakpointsworks tier-only
    --col-startgrid-column-startany CSS valuebreakpointsworks tier-only
    --col-endgrid-column-endany CSS valuebreakpointsworks tier-only
    --row-spangrid-rowspan countbreakpointsworks tier-only
    --row-startgrid-row-startany CSS valuebreakpointsworks tier-only
    --row-endgrid-row-endany CSS valuebreakpointsworks tier-only
    --gapgapscale number or lengthbreakpointsworks tier-only
    --gap-xcolumn-gapscale number or lengthbreakpointsworks tier-only
    --gap-yrow-gapscale number or lengthbreakpointsworks tier-only
    --itemsalign-itemskeywordbreakpointsworks tier-only
    --justifyjustify-contentkeywordbreakpointsworks tier-only
    --place-itemsplace-itemsalignment keyword (center, start, end, stretch, safe end, …)breakpointsworks tier-only
    --place-contentplace-contentalignment keyword (center, start, end, space-between, safe end, …)breakpointsworks tier-only
    --selfalign-selfkeywordbreakpointsworks tier-only

    Examples

    --justify: start
    a b c
    --justify: center
    a b c
    --justify: space-between
    a b c
    <div
      style="
        --display: flex-col;
        --gap: 6;
        --w: 100%;
        --max-w: 96;
      "
    >
      <div
        style="
          --display: flex-col;
          --gap: 2;
        "
      >
        <span
          data-ui="text-xs"
          style="
            --font-weight: strong;
            --text: var(--color-muted-foreground);
          "
          >--justify: start</span
        >
        <div
          style="
            --display: flex;
            --justify: start;
            --p: 4;
            --gap: 4;
            --bg: var(--color-muted);
            --radius: 2.5;
          "
        >
          <span data-ui="badge" data-badge-variant="primary">a</span>
          <span data-ui="badge" data-badge-variant="primary">b</span>
          <span data-ui="badge" data-badge-variant="primary">c</span>
        </div>
      </div>
      <div
        style="
          --display: flex-col;
          --gap: 2;
        "
      >
        <span
          data-ui="text-xs"
          style="
            --font-weight: strong;
            --text: var(--color-muted-foreground);
          "
          >--justify: center</span
        >
        <div
          style="
            --display: flex;
            --justify: center;
            --p: 4;
            --gap: 4;
            --bg: var(--color-muted);
            --radius: 2.5;
          "
        >
          <span data-ui="badge" data-badge-variant="primary">a</span>
          <span data-ui="badge" data-badge-variant="primary">b</span>
          <span data-ui="badge" data-badge-variant="primary">c</span>
        </div>
      </div>
      <div
        style="
          --display: flex-col;
          --gap: 2;
        "
      >
        <span
          data-ui="text-xs"
          style="
            --font-weight: strong;
            --text: var(--color-muted-foreground);
          "
          >--justify: space-between</span
        >
        <div
          style="
            --display: flex;
            --justify: space-between;
            --p: 4;
            --gap: 4;
            --bg: var(--color-muted);
            --radius: 2.5;
          "
        >
          <span data-ui="badge" data-badge-variant="primary">a</span>
          <span data-ui="badge" data-badge-variant="primary">b</span>
          <span data-ui="badge" data-badge-variant="primary">c</span>
        </div>
      </div>
    </div>
    --display: flex-row
    1
    2
    3
    --display: flex-col
    1
    2
    3
    <div
      style="
        --display: flex-col;
        --gap: 11;
        --w: 100%;
        --max-w: 96;
      "
    >
      <div
        style="
          --display: flex-col;
          --gap: 2;
        "
      >
        <span
          data-ui="text-xs"
          style="
            --font-weight: strong;
            --text: var(--color-muted-foreground);
          "
          >--display: flex-row</span
        >
        <div
          style="
            --display: flex-row;
            --gap: 4;
          "
        >
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            1
          </div>
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            2
          </div>
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            3
          </div>
        </div>
      </div>
      <div
        style="
          --display: flex-col;
          --gap: 2;
        "
      >
        <span
          data-ui="text-xs"
          style="
            --font-weight: strong;
            --text: var(--color-muted-foreground);
          "
          >--display: flex-col</span
        >
        <div
          style="
            --display: flex-col;
            --gap: 4;
          "
        >
          <div
            data-ui="text-sm"
            style="
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-muted-foreground);
              --bg: var(--color-muted);
              --radius: 2.5;
            "
          >
            1
          </div>
          <div
            data-ui="text-sm"
            style="
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-muted-foreground);
              --bg: var(--color-muted);
              --radius: 2.5;
            "
          >
            2
          </div>
          <div
            data-ui="text-sm"
            style="
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-muted-foreground);
              --bg: var(--color-muted);
              --radius: 2.5;
            "
          >
            3
          </div>
        </div>
      </div>
    </div>
    --flex: none
    --flex: 1
    --flex: 1
    <div
      style="
        --display: flex;
        --gap: 4;
        --w: 100%;
        --max-w: 96;
      "
    >
      <div
        data-ui="text-sm"
        style="
          --flex: none;
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-muted-foreground);
          --bg: var(--color-muted);
          --radius: 2.5;
        "
      >
        --flex: none
      </div>
      <div
        data-ui="text-sm"
        style="
          --flex: 1;
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        --flex: 1
      </div>
      <div
        data-ui="text-sm"
        style="
          --flex: 1;
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        --flex: 1
      </div>
    </div>
    --basis: 1/2
    --basis: 1/2
    --basis: 1/3
    --basis: 1/3
    --basis: 1/3
    <div
      style="
        --display: flex;
        --flex-wrap: wrap;
        --gap: 6;
        --w: 100%;
        --max-w: 96;
      "
    >
      <div
        data-ui="text-sm"
        style="
          --basis: calc((100% - 6 * var(--spacing)) / 2);
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        --basis: 1/2
      </div>
      <div
        data-ui="text-sm"
        style="
          --basis: calc((100% - 6 * var(--spacing)) / 2);
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        --basis: 1/2
      </div>
      <div
        data-ui="text-sm"
        style="
          --basis: calc((100% - 12 * var(--spacing)) / 3);
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-secondary-foreground);
          --bg: var(--color-secondary);
          --radius: 2.5;
        "
      >
        --basis: 1/3
      </div>
      <div
        data-ui="text-sm"
        style="
          --basis: calc((100% - 12 * var(--spacing)) / 3);
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-secondary-foreground);
          --bg: var(--color-secondary);
          --radius: 2.5;
        "
      >
        --basis: 1/3
      </div>
      <div
        data-ui="text-sm"
        style="
          --basis: calc((100% - 12 * var(--spacing)) / 3);
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-secondary-foreground);
          --bg: var(--color-secondary);
          --radius: 2.5;
        "
      >
        --basis: 1/3
      </div>
    </div>
    1st in markup · order-last
    2nd in markup
    3rd in markup · order-first
    <div
      style="
        --display: flex;
        --gap: 4;
        --w: 100%;
        --max-w: 96;
      "
    >
      <div
        data-ui="text-sm"
        style="
          --flex: 1;
          --order: 9999;
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        1st in markup · order-last
      </div>
      <div
        data-ui="text-sm"
        style="
          --flex: 1;
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-muted-foreground);
          --bg: var(--color-muted);
          --radius: 2.5;
        "
      >
        2nd in markup
      </div>
      <div
        data-ui="text-sm"
        style="
          --flex: 1;
          --order: -9999;
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        3rd in markup · order-first
      </div>
    </div>
    --gap: 2
    1
    2
    3
    --gap: 6
    1
    2
    3
    --gap: 24
    1
    2
    3
    <div
      style="
        --display: flex-col;
        --gap: 11;
        --w: 100%;
        --max-w: 96;
      "
    >
      <div
        style="
          --display: flex-col;
          --gap: 2;
        "
      >
        <span
          data-ui="text-xs"
          style="
            --font-weight: strong;
            --text: var(--color-muted-foreground);
          "
          >--gap: 2</span
        >
        <div
          style="
            --display: flex;
            --gap: 2;
          "
        >
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            1
          </div>
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            2
          </div>
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            3
          </div>
        </div>
      </div>
      <div
        style="
          --display: flex-col;
          --gap: 2;
        "
      >
        <span
          data-ui="text-xs"
          style="
            --font-weight: strong;
            --text: var(--color-muted-foreground);
          "
          >--gap: 6</span
        >
        <div
          style="
            --display: flex;
            --gap: 6;
          "
        >
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            1
          </div>
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            2
          </div>
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            3
          </div>
        </div>
      </div>
      <div
        style="
          --display: flex-col;
          --gap: 2;
        "
      >
        <span
          data-ui="text-xs"
          style="
            --font-weight: strong;
            --text: var(--color-muted-foreground);
          "
          >--gap: 24</span
        >
        <div
          style="
            --display: flex;
            --gap: 24;
          "
        >
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            1
          </div>
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            2
          </div>
          <div
            data-ui="text-sm"
            style="
              --flex: 1;
              --p: 4;
              --font-weight: strong;
              --text-align: center;
              --text: var(--color-primary-foreground);
              --bg: var(--color-primary);
              --radius: 2.5;
            "
          >
            3
          </div>
        </div>
      </div>
    </div>
    1
    2
    3
    4
    5
    6
    <div
      style="
        --display: grid;
        --grid-cols: 3;
        --gap: 6;
        --w: 100%;
        --max-w: 96;
      "
    >
      <div
        data-ui="text-sm"
        style="
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        1
      </div>
      <div
        data-ui="text-sm"
        style="
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        2
      </div>
      <div
        data-ui="text-sm"
        style="
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        3
      </div>
      <div
        data-ui="text-sm"
        style="
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        4
      </div>
      <div
        data-ui="text-sm"
        style="
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        5
      </div>
      <div
        data-ui="text-sm"
        style="
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        6
      </div>
    </div>
    --col-span: 2
    1
    1
    --col-span: 2
    --col-start: 1; --col-end: -1
    <div
      style="
        --display: grid;
        --grid-cols: 3;
        --gap: 6;
        --w: 100%;
        --max-w: 96;
      "
    >
      <div
        data-ui="text-sm"
        style="
          --col-span: 2;
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        --col-span: 2
      </div>
      <div
        data-ui="text-sm"
        style="
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-muted-foreground);
          --bg: var(--color-muted);
          --radius: 2.5;
        "
      >
        1
      </div>
      <div
        data-ui="text-sm"
        style="
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-muted-foreground);
          --bg: var(--color-muted);
          --radius: 2.5;
        "
      >
        1
      </div>
      <div
        data-ui="text-sm"
        style="
          --col-span: 2;
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-primary-foreground);
          --bg: var(--color-primary);
          --radius: 2.5;
        "
      >
        --col-span: 2
      </div>
      <div
        data-ui="text-sm"
        style="
          --col-start: 1;
          --col-end: -1;
          --p: 4;
          --font-weight: strong;
          --text-align: center;
          --text: var(--color-secondary-foreground);
          --bg: var(--color-secondary);
          --radius: 2.5;
        "
      >
        --col-start: 1; --col-end: -1
      </div>
    </div>
    --display: flex-col; --display--sm: flex-row — stacks on a narrow container, rows out on a wide one. Expand to see it.
    Sidebar
    Content
    Aside
    <div
      style="
        --display: flex-col;
        --gap: 2;
        --w: 100%;
      "
    >
      <span
        data-ui="text-xs"
        style="
          --font-weight: strong;
          --text: var(--color-muted-foreground);
        "
      >
        --display: flex-col; --display--sm: flex-row — stacks on a narrow container, rows out on a wide
        one. Expand to see it.
      </span>
      <div
        style="
          --display: flex-col;
          --display--sm: flex-row;
          --gap: 6;
          --w: 100%;
        "
      >
        <div
          data-ui="text-sm"
          style="
            --flex: 1;
            --p: 6;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          Sidebar
        </div>
        <div
          data-ui="text-sm"
          style="
            --flex: 1;
            --p: 6;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-muted-foreground);
            --bg: var(--color-muted);
            --radius: 2.5;
          "
        >
          Content
        </div>
        <div
          data-ui="text-sm"
          style="
            --flex: 1;
            --p: 6;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-muted-foreground);
            --bg: var(--color-muted);
            --radius: 2.5;
          "
        >
          Aside
        </div>
      </div>
    </div>
    --grid-cols: 1; --grid-cols--sm: 2; --grid-cols--md: 3; --grid-cols--lg: 4 — expand to widen the container.
    1
    2
    3
    4
    5
    6
    7
    8
    <div
      style="
        --display: flex-col;
        --gap: 2;
        --w: 100%;
      "
    >
      <span
        data-ui="text-xs"
        style="
          --font-weight: strong;
          --text: var(--color-muted-foreground);
        "
      >
        --grid-cols: 1; --grid-cols--sm: 2; --grid-cols--md: 3; --grid-cols--lg: 4 — expand to widen the
        container.
      </span>
      <div
        style="
          --display: grid;
          --grid-cols: 1;
          --grid-cols--sm: 2;
          --grid-cols--md: 3;
          --grid-cols--lg: 4;
          --gap: 6;
          --w: 100%;
        "
      >
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          1
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          2
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          3
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          4
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          5
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          6
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          7
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          8
        </div>
      </div>
    </div>
    --grid-fit: 10rem — as many 10rem tracks as fit, then wrap. Expand to widen.
    1
    2
    3
    4
    5
    6
    7
    8
    <div
      style="
        --display: flex-col;
        --gap: 2;
        --w: 100%;
      "
    >
      <span
        data-ui="text-xs"
        style="
          --font-weight: strong;
          --text: var(--color-muted-foreground);
        "
      >
        --grid-fit: 10rem — as many 10rem tracks as fit, then wrap. Expand to widen.
      </span>
      <div
        style="
          --display: grid;
          --grid-fit: 10rem;
          --gap: 6;
          --w: 100%;
        "
      >
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          1
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          2
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          3
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          4
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          5
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          6
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          7
        </div>
        <div
          data-ui="text-sm"
          style="
            --p: 4;
            --font-weight: strong;
            --text-align: center;
            --text: var(--color-primary-foreground);
            --bg: var(--color-primary);
            --radius: 2.5;
          "
        >
          8
        </div>
      </div>
    </div>

    API