@manta-eu/react/stat-tiles
Reference for @manta-eu/react/stat-tiles as it is on main.
Type Aliases
StatTile
StatTile =
object
Properties
attention?
optionalattention?:boolean
Shows a warning dot; screen readers hear attentionLabel.
attentionVariant?
optionalattentionVariant?:"warning"|"error"
decimals?
optionaldecimals?:number
figure?
optionalfigure?:string
Words shown instead of value, such as a role.
href?
optionalhref?:string
info?
optionalinfo?:ReactNode
isLoading?
optionalisLoading?:boolean
Shows this tile loading while others show figures.
label
label:
string
note?
optionalnote?:string
prefix?
optionalprefix?:string
status?
optionalstatus?:StatTileStatus
suffix?
optionalsuffix?:string
trend?
optionaltrend?:StatTileTrend
unit?
optionalunit?:string
value
value:
number
StatTilesProps
StatTilesProps =
object
Properties
attentionLabel?
optionalattentionLabel?:string
Read after a flagged tile’s label; “needs attention” by default.
className?
optionalclassName?:string
infoLabel?
optionalinfoLabel?: (tileLabel) =>string
Names a tile’s info tip; “About running” by default.
Parameters
tileLabel
string
Returns
string
isLoading?
optionalisLoading?:boolean
label
label:
string
lead?
optionallead?:"figure"|"label"
The tile’s largest text: the figure (default) or the label, for tiles named by what they track.
linkComponent?
optionallinkComponent?:ElementType
The link component, such as a router link; receives href.
tiles
tiles: readonly
StatTile[]
StatTileStatus
StatTileStatus =
object
Properties
label
label:
string
variant
variant:
StatusVariant
StatTileTrend
StatTileTrend =
object
Properties
at?
optionalat?: readonlynumber[]
Each figure’s x from 0 to 1; evenly spaced by default.
now?
optionalnow?:number
Today’s index: solid with a Today rule up to it, dotted after. Without it, the last figure gets the dot.
target?
optionaltarget?:number
values
values: readonly
number[]
Functions
StatTiles()
StatTiles(
props):Element
Parameters
props
Returns
Element