Site selector

The Site selector component provides a compact way to switch between sites or audiences.

Standard site selector

A compact selector for switching between related sites or audiences. The current site is highlighted and cannot be selected again.

Overflowing items

Additional sites are grouped into the popover when the visible item limit is reached.

API

Parameter Default Type Description
div string -
[] array -
false integer|boolean -
string -
full string -
primary string -

CSS API

Variable Default Type Values Description
var(--base) range - Main unit that drives radius and spacing scales.
var(--border-radius) range - Border radius
var(--border-width) range - Border width
var(--corner-shape) select square, round, squircle, circular, bevel, scoop Corner shape
var(--color--primary) color - Background color
var(--color--primary-contrast) color - Primary Contrast
var(--color--primary-alt) color - Manual companion token for subtle primary surfaces.
var(--color--primary-border) color - Manual companion token for primary border and hover states.
var(--c-siteselector--size-md) select var(--c-siteselector--size-sm), var(--c-siteselector--size-md), var(--c-siteselector--size-lg) Controls the height using the same small, medium, and large steps as filled buttons.

Similar components