Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
React Native docs
Data displayReact Native

Stat group

Lay out related stats in an adaptive grid.

Public APILumenStatGroupReact Native

Native example

Use Stat group

Use dividers to join the stats into one frame.

Stat group rendered in the Expo web renderer Lumen playground

Captured exampleExpo web renderer

Open interactive preview
Open the Stat group demo
tsx
import { LumenStat, LumenStatGroup } from '@santi020k/lumen-react-native'

export function SupportStats() {
  return (
    <LumenStatGroup dividers label="Support">
      <LumenStat label="Open tickets" value="38" detail="Last 7 days" />
      <LumenStat label="Median reply" value="1h 12m" trend={{ direction: 'down', label: '8 min', tone: 'success' }} />
      <LumenStat label="Satisfaction" value="96%" />
      <LumenStat label="Escalations" value="5" trend={{ direction: 'up', label: '2', tone: 'danger' }} />
    </LumenStatGroup>
  )
}
React Native
Four support metrics in one divided frame that adapts its columns to the width.

Reference

Public API

The primary shared and platform-specific options exposed by LumenStatGroup.

APIValues or typeDefaultDescription
label / dividers / minimumWidthgroup name / joined frame / column widthrequired / false / 160Use dividers to join the stats into one frame.

Native behavior

Design and accessibility

When to use it

Use dividers to join the stats into one frame.

Accessibility

Named group; each stat keeps its own summary.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose Web
React Native docsNative primitives