Theme studio

Design a theme, preview it live, then export it. Saved in this browser.

Quick picks #10b981
Generated scale
50100200300400500600700800900
Some text is below AA

SelectGroupLabel

  • Stable
  • WCAG 2.2 evidence
  • RTL
  • Web · iOS · Android

Heading of a group of options. Render it as the first child of a SelectSection: React Aria then labels the section's group with it, so screen readers announce the group name when focus enters it (WCAG 1.3.1, 4.1.2). It is not focusable and the arrow keys skip it. Use group labels in long lists with natural categories; skip them in single-group lists.

import { SelectGroupLabel } from "@nexera-ui/react";
Loading example…
4
examples
3
props
2
live controls
3
platforms
5
WCAG criteria
0
blocks use it

Try every prop. Copy the code.

Change the props and the code updates. Check light and dark, LTR and RTL, and phone width.

Loading…
label
platform
Generated code
import { SelectGroupLabel } from "@nexera-ui/react";

<SelectGroupLabel />

Examples 3

The same examples as Storybook, rendered live. Open Code to copy one.

Groups

Two groups, as the Figma Combobox listbox Type=Grouped shows them; the arrow keys skip the labels.

Loading example…

Platforms

iOS and Android lists: the label lines up with the 16 px mobile option padding.

Loading example…

Long label and rtl

Long labels wrap; right-to-left mirrors the padding.

Loading example…

Props 3

Press "Try it" on a card to load that prop into the playground.

3 props shown

label*Nexera
ReactNode

Visible heading of the group, for example "Offices". It names the section's group.

Default –
platformNexera
"web" | "ios" | "android"

Platform look. Figma has a group label for web only; on iOS and Android the padding follows the option rows. Defaults to the platform of the enclosing Select or Combobox, then of the NexeraProvider.

Default "web"
classNameNexera
string

Extra classes, merged last so they win over the defaults.

Default –

* Required. React Aria props shown are the ones most apps use; the component accepts the rest of its React Aria props too.

Accessible by default.

Built on React Aria, and covered by the WCAG 2.2 evidence generated on every build.

WCAG 2.2 evidence

3 direct · 2 supporting
  • 1.3.1Info and RelationshipsLevel A · tested directly
  • 1.4.10ReflowLevel AA · supporting test
  • 1.4.12Text SpacingLevel AA · supporting test
  • 2.1.1KeyboardLevel A · tested directly
  • 4.1.2Name, Role, ValueLevel A · tested directly

Fits any width.

Nexera components respond to the space they are given. Drag the corner of the frame, or pick a width.

0 px · drag the corner

Styling hooks

Pass className to add Tailwind classes (merged last). State is exposed as data attributes, so you can style it with variants like data-pressed:.

Usage
<SelectGroupLabel className="shadow-sm" />

Used in blocks

No block uses SelectGroupLabel yet.

Related components