Topbar Preferences

The language switch and the theme button together — one capsule for a top bar, or labelled rows for a menu.

A block from @tectra-ng/blocks — it comes with tectra-ng, or alone: npm install @tectra-ng/blocks.

Features3APIThemingAccessibility

Basic

One capsule for a top bar. raised puts it on the card colour with a shadow and paints the chosen language in the primary colour.

Plain
Raised

Stacked

layout="stacked" shows labelled rows — for a mobile menu or a drawer.

Language

Design tokens

dt changes the tokens of one capsule: here larger controls, more space and a taller divider.