Stats Card

A Stats Card pattern is used to display summerized statisitcs and status information with support for integration into an applications filtering system.

5
Disinfection station complete
5
Disinfection station complete
5
Disinfection station complete
5
Disinfection station complete
5
Disinfection station complete
5
Reprocessing in progress
7
Not in use not connected
3
In use connected to CV
0
In repair not available
import '@ods/components/web.stats-card';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
count-regionRegion used to place count content.
status-regionRegion used to place status content.

Properties

Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.

Property/AttributeReflectsTypeDefault
name
string''
value
string
disabled
booleanfalse
checked
booleanfalse
defaultChecked
booleanfalse

Events

React EventDescriptionEvent Detail
ods-stats-card-changeEmitted when the stats card is clicked.--
ods-stats-card-blurEmitted when the stats card loses focus.--
ods-stats-card-inputEmitted when the stats card receives input.--
ods-stats-card-focusEmitted when the stats card receives focus.--

Parts

NameDescription
baseThe component's base wrapper.
count-regionThe container that wraps the filter card's count region.
status-regionThe container that wraps the filter card's status region.

Usage

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do

  • Use Stats Cards to filter data used to display content in Data Tables or Data Lists.
  • Display Stats Cards above Data Tables and Data Lists
  • Display Stats Cards as clickable elements

Dont

  • Display Stats Cards below Data Tables and Data Lists
  • Display Stats Cards as non-clickable elements without rollever stats

Search