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

SystemMessage

  • Stable
  • WCAG 2.2 evidence
  • RTL

An event in a conversation that nobody wrote, such as someone joining or a channel being renamed: a small muted pill with an optional icon. The text carries the meaning, so nothing depends on the icon or colour (WCAG 1.1.1, 1.4.1); text/muted on bg/sunken meets 4.5:1 in Light and Dark (1.4.3). It is static content, not a live region: render the conversation as a role="log" list so new events are announced with the messages (4.1.3). Presentational: renders in React Server Components. Consumer duties: wording; centring it in the conversation (for example self-center in a flex column); use Alert for errors.

import { SystemMessage } from "@nexera-ui/react";
Loading example…
4
examples
2
props
1
live controls
1
platform
5
WCAG criteria
3
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…
children
Generated code
import { SystemMessage } from "@nexera-ui/react";

<SystemMessage />

Examples 3

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

In conversation

Centred between messages in a conversation; the icon is optional.

Loading example…

Long text

Long text wraps inside the pill instead of truncating.

Loading example…

Right to left

Right-to-left: the icon moves to the right.

Loading example…

Props 2

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

2 props shown

children*Nexera
ReactNode

What happened. Say it in words: the icon is decorative. Wraps; never truncated.

Default –
iconNexera
ReactNode

Icon before the text, 12 px, for example <IconUserPlus /> for someone joining. Shown when provided; decorative (hidden from assistive technology).

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

2 direct · 3 supporting
  • 1.1.1Non-text ContentLevel A · tested directly
  • 1.3.1Info and RelationshipsLevel A · tested directly
  • 1.4.10ReflowLevel AA · supporting test
  • 1.4.11Non-text ContrastLevel AA · supporting test
  • 1.4.12Text SpacingLevel AA · supporting test

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
<SystemMessage className="shadow-sm" />

Used in blocks

Related components