Manta Developers
GitHub
Menu

@manta-eu/react/data-flow

Reference for @manta-eu/react/data-flow as it is on main.

Type Aliases

DataFlowDiagramLabels

DataFlowDiagramLabels = object

Properties

destinations

destinations: string

everyFlow

everyFlow: string

Follows the diagram’s label on that list: “Records a day: every flow”.

flow

flow: (from, to) => string

Names one flow in the list a screen reader hears: “Shopify to Manta”.

Parameters
from

string

to

string

Returns

string

sources

sources: string


DataFlowDiagramNode

DataFlowDiagramNode = object

Properties

detail?

optional detail?: string

A line in the node’s tip, such as “Last read at 10:21”.

icon?

optional icon?: ReactNode

id

id: string

label

label: string

meta?

optional meta?: string

The node’s second line, such as “24 campaigns”; its value in unit by default.

to?

optional to?: readonly string[]

Sources only: the destinations (by id) this source’s records reach; every one when left out.

value

value: number

The volume on this node’s line: the core counts the sources’, and a source at zero sends no records.


DataFlowDiagramProps

DataFlowDiagramProps = object

Properties

className?

optional className?: string

coreIcon?

optional coreIcon?: ReactNode

The core’s mark; the Manta logo by default.

coreLabel?

optional coreLabel?: string

destinations

destinations: readonly DataFlowDiagramNode[]

formatValue?

optional formatValue?: (value) => string

Parameters
value

number

Returns

string

label

label: string

Names the diagram for assistive technology, such as “Records from your systems through Manta”.

labels?

optional labels?: Partial<DataFlowDiagramLabels>

The diagram’s own words, for another language.

running?

optional running?: boolean

False holds every record still, such as while the flow is paused.

sources

sources: readonly DataFlowDiagramNode[]

unit?

optional unit?: string

Names the figures, such as “records a day”.

Functions

DataFlowDiagram()

DataFlowDiagram(props): Element

Records from sources into one core and out to destinations. Below 40rem the sources shrink to their marks.

Parameters

props

DataFlowDiagramProps

Returns

Element