Arlo Design System

Selection and input

Segmented control

A segmented control switches between 2–5 closely related views or modes (Apple: segmented controls); it replaces Arlo's pill Tabs.

Preview
HTML
<div class="col">
<div class="ar-seg"><span class="ar-seg__item ar-seg__item--selected">Chat</span><span class="ar-seg__item">Agents</span><span class="ar-seg__item">Files</span></div>
<div class="ar-seg"><span class="ar-seg__item"><span class="sf" data-symbol="bubble.left"></span>Messages</span><span class="ar-seg__item ar-seg__item--selected"><span class="sf" data-symbol="chevron.left.forwardslash.chevron.right"></span>Code</span></div>
<div class="ar-seg ar-seg--full" style="max-width:360px"><span class="ar-seg__item">Day</span><span class="ar-seg__item ar-seg__item--selected">Week</span><span class="ar-seg__item">Month</span><span class="ar-seg__item">Year</span></div>
</div>

<!-- page-level layout helpers used by this example -->
<style>
body { margin:0; padding:24px; }
.row { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.col { display:flex; flex-direction:column; gap:16px; }
.cap { font:500 12px/16px var(--font-sans); letter-spacing:.5px; color:var(--color-text-secondary); }
</style>

Guidelines

  • Track ar-seg: color-bg-tertiary, space25 inset, corner radius-button + 2px. Segments ar-seg__item: 28px (control-sm), 13px medium text in color-text-secondary; the selected one is ar-seg__item--selected (white, color-text-primary, shadow-sm).
  • Segments use the same corner as buttons (radius-button, 12px), not a capsule.
  • ar-seg--full stretches segments equally across a container.
  • Text or a symbol in each segment, consistently: don't mix symbol-only and text-only segments.

The consumer provides: the segments, the selected index, and the handler; use role="tablist"/role="tab" when it switches views. Don't use it for actions or for more than 5 options.

Arlo Design System · generated from the design-system source by tools/build.py · SF Symbols are Apple's, licensed for apps on Apple platforms.

Copied