Skip to main content
Version: Next

MetricCard API

import { MetricCard } 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

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).