Manta Developers
GitHub
Menu

@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?

optional id?: string

Stable across renders; the label by default, numbered when labels repeat.

label

label: string


ChangePictureOrder

ChangePictureOrder = "change" | "given"


ChangePictureProps

ChangePictureProps = object

Properties

afterLabel?

optional afterLabel?: string

beforeLabel?

optional beforeLabel?: string

className?

optional className?: string

formatChange?

optional formatChange?: (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?

optional limit?: number

Rows past this fold into one last row.

noChangeLabel?

optional noChangeLabel?: string

order?

optional order?: ChangePictureOrder

change sorts by size of change, largest first; given keeps the order.

restLabel?

optional restLabel?: (count) => string

Parameters
count

number

Returns

string

total?

optional total?: boolean

totalLabel?

optional totalLabel?: string

Functions

ChangePicture()

ChangePicture(props): Element

Parameters

props

ChangePictureProps

Returns

Element