Manta Developers
GitHub
Menu

@manta-eu/react/flow-frame

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

Type Aliases

FlowFrameActionsProps

FlowFrameActionsProps = object

Properties

above?

optional above?: ReactNode

children

children: ReactNode

className?

optional className?: string

error?

optional error?: boolean

itemSelector?

optional itemSelector?: string

Items counted toward “+N more below”.

lead?

optional lead?: ReactNode

note?

optional note?: ReactNode

status?

optional status?: ReactNode

statusKey?

optional statusKey?: string

A string status is its own key.


FlowFrameProps

FlowFrameProps = object

Properties

animateFirstScreen?

optional animateFirstScreen?: boolean

For apps that mount a new frame per route.

backdrop?

optional backdrop?: ReactNode

children

children: ReactNode

className?

optional className?: string

completeLabel?

optional completeLabel?: string

current

current: number

steps.length once done.

description?

optional description?: ReactNode

end?

optional end?: ReactNode

label

label: string

optional logo?: ReactNode

onBack?

optional onBack?: () => void

Without it, logo takes the Back button’s place.

Returns

void

onStepSelect?

optional onStepSelect?: (index) => void

Parameters
index

number

Returns

void

order

order: number

Sets the slide direction.

pageClassName?

optional pageClassName?: string

previousOrder?

optional previousOrder?: number

previousStep?

optional previousStep?: number

screen

screen: string

A new key animates the next screen in.

screenClassName?

optional screenClassName?: string

steps

steps: StepperStep[]

title

title: string | readonly [string, string]

A pair’s second part is muted.

Functions

FlowFrame()

FlowFrame(props): Element

One question per screen; pair with FlowFrameActions.

Parameters

props

FlowFrameProps

Returns

Element


FlowFrameActions()

FlowFrameActions(props): Element

Parameters

props

FlowFrameActionsProps

Returns

Element