Stat API
import { Stat } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
description | React.ReactNode | |
icon | React.ReactNode | An Editora icon name ("wallet"), or your own element. |
label (required) | React.ReactNode | |
meta | React.ReactNode | |
size | keyof typeof SIZE_STYLES | |
tone | keyof typeof TONE_ACCENTS | |
trend | React.ReactNode | |
value (required) | React.ReactNode | |
variant | 'plain' | 'card' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-stat>
Stat renders the ui-stat custom element from @editora/ui-core, which can also be used without React.
Attributes: description, icon, label, meta, size, tone, trend, value, variant