@manta-eu/react/change-picture
Reference for @manta-eu/react/change-picture as it is on main.
Type Aliases
ChangePictureItem
ChangePictureItem =
object
Properties
after
after:
number
before
before:
number
id?
optionalid?:string
Stable across renders; the label by default, numbered when labels repeat.
label
label:
string
ChangePictureOrder
ChangePictureOrder =
"change"|"given"
ChangePictureProps
ChangePictureProps =
object
Properties
afterLabel?
optionalafterLabel?:string
beforeLabel?
optionalbeforeLabel?:string
className?
optionalclassName?:string
formatChange?
optionalformatChange?: (change) =>string
A row’s change in words; “+€14k” or “cut €3k” by default.
Parameters
change
number
Returns
string
formatValue
formatValue: (
value) =>string
Parameters
value
number
Returns
string
items
items: readonly
ChangePictureItem[]
label
label:
string
limit?
optionallimit?:number
Rows past this fold into one last row.
noChangeLabel?
optionalnoChangeLabel?:string
order?
optionalorder?:ChangePictureOrder
change sorts by size of change, largest first; given keeps the order.
restLabel?
optionalrestLabel?: (count) =>string
Parameters
count
number
Returns
string
total?
optionaltotal?:boolean
totalLabel?
optionaltotalLabel?:string
Functions
ChangePicture()
ChangePicture(
props):Element
Parameters
props
Returns
Element