@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?
optionaldetail?:string
A line in the node’s tip, such as “Last read at 10:21”.
icon?
optionalicon?:ReactNode
id
id:
string
label
label:
string
meta?
optionalmeta?:string
The node’s second line, such as “24 campaigns”; its value in unit by default.
to?
optionalto?: readonlystring[]
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?
optionalclassName?:string
coreIcon?
optionalcoreIcon?:ReactNode
The core’s mark; the Manta logo by default.
coreLabel?
optionalcoreLabel?:string
destinations
destinations: readonly
DataFlowDiagramNode[]
formatValue?
optionalformatValue?: (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?
optionallabels?:Partial<DataFlowDiagramLabels>
The diagram’s own words, for another language.
running?
optionalrunning?:boolean
False holds every record still, such as while the flow is paused.
sources
sources: readonly
DataFlowDiagramNode[]
unit?
optionalunit?: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
Returns
Element