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

MenuSectionLabel

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

Heading of a group of menu items. Render it as the first child of a MenuSection: 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). Not focusable; the arrow keys skip it. Use section labels to group related actions; skip them in single-group menus.

import { MenuSectionLabel } from "@nexera-ui/react";
Loading example…
3
examples
3
props
2
live controls
3
platforms
4
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 { MenuSectionLabel } from "@nexera-ui/react";

<MenuSectionLabel />

Examples 2

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

Groups

Two groups, each named by its label, separated by a divider.

Loading example…

Platforms

On iOS and Android the label lines up with the row text.

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 "Sort by". It names the section's group.

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

Platform look. Figma has a section label for web only; on iOS and Android the padding follows the item rows. Defaults to the platform of the enclosing Menu, 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 · 1 supporting
  • 1.3.1Info and RelationshipsLevel A · tested directly
  • 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
<MenuSectionLabel className="shadow-sm" />

Used in blocks

No block uses MenuSectionLabel yet.

Related components