Skip to main content
Version: Next

Stat API

import { Stat } from '@editora/ui-react';

Props​

PropTypeDescription
askeyof JSX.IntrinsicElements
descriptionReact.ReactNode
iconReact.ReactNodeAn Editora icon name ("wallet"), or your own element.
label (required)React.ReactNode
metaReact.ReactNode
sizekeyof typeof SIZE_STYLES
tonekeyof typeof TONE_ACCENTS
trendReact.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