Skip to content

Search

Start typing to search.


Show all pages

Documentation

layout

Cluster

Puts children in a row that wraps, such as buttons or tags.

CSS onlyPlain classes; no JavaScript in any stack.

Usage

A cluster keeps items on one line and wraps them when there is no room.

HTML

Examples

As a list

Make the cluster a list when its items are a set, such as tags.

  • Roundabouts
  • Merging
  • Parallel parking
  • Night driving
  • Highway exits
HTML

Guidance and accessibility

When to use

  • Use a cluster for buttons, tags or links that sit side by side and may wrap on narrow screens.
  • Put the main action first in the markup; wrapping keeps that order.

Accessibility

  • Use a <ul> when the items form a set and label it, so screen readers announce the number of items.

Classes

Generated from the component contract. Parts use __, modifiers use --.

Classes of the cluster component
ClassKindUse it for
ca-clusterComponentA row that wraps; the space between items comes from the size.
ca-cluster--smSizeTight space, for tags.
ca-cluster--mdSizeDefault space, for buttons.
ca-cluster--lgSizeWide space.

Skins

The same markup, dressed by each skin. Structure and behavior stay the same; only the look changes.

Base skin

Neutral grayscale starting point; product skins extend it and change what differs.

Calaca skin

The Calaca UI brand: hueso paper and tinta ink, cempasúchil marigold, rosa and jade.

Proof skin

Pilot skin pushed far from base: square, heavy, offset shadows, larger targets.

Crossview skin

The CrossView proofing table: cool ground, bond-paper sheets, rule-grey hairlines, one red mark.

Framework notes

Link the prebuilt stylesheet of your skin next to your brand theme. No build step.

HTML
<link rel="stylesheet" href="theme.css" />
<link rel="stylesheet" href="ca-base.css" />