Components · Inline Primitives
Aurora
BetaAdded v4.2.0
A decorative background of slow-drifting colour fields from the accent roles. Subtle by default, richer under data-expression="vivid".
import { Aurora } from '@nexub/react';Examples
Behind a hero
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | Shape it to its container, e.g. rounded-shape-container. The parent needs position: relative and isolate so the aurora stays behind the content. |
Accessibility
Screen reader
Decorative: the whole layer is `aria-hidden`.
Notes
The fields stop drifting under reduced motion and the layer is hidden in forced-colours mode.
On iOS & Android
Web only
Aurora has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.