Manta Developers
GitHub
Menu

@manta-eu/react/providers/FutureFlagsProvider

Reference for @manta-eu/react/providers/FutureFlagsProvider as it is on main.

Type Aliases

FutureFlag

FutureFlag = keyof FutureFlags


FutureFlags

FutureFlags = object

Opt-in changes, off by default. Each v1_ flag becomes the default in 1.0.

Properties

v1_expressiveMotion?

optional v1_expressiveMotion?: boolean

Spring and fade motion on controls and page changes.

v1_fittedForecastAxes?

optional v1_fittedForecastAxes?: boolean

ForecastChart sizes its y axis to its labels; the Today label sits above the plot.

v1_groupedSidebar?

optional v1_groupedSidebar?: boolean

The sidebar lists the datastore’s desks, each opening to its pages and attached boards.

v1_loadingButtonKeepsFocus?

optional v1_loadingButtonKeepsFocus?: boolean

A loading Button stays focusable (aria-disabled) instead of disabled.

v1_screenLayouts?

optional v1_screenLayouts?: boolean

PageHeader’s back link, kicker and views; hides the onboarding layer.

v1_tableKeyboardNavigation?

optional v1_tableKeyboardNavigation?: boolean

Arrow, Home and End move focus in tables; Escape clears the selection.


FutureFlagsProviderProps

FutureFlagsProviderProps = PropsWithChildren<{ future?: FutureFlags; }>

Variables

allFutureFlags

const allFutureFlags: Required<FutureFlags>

Functions

FutureFlagsProvider()

FutureFlagsProvider(props): Element

Merges with any enclosing provider’s flags; a flag this one leaves undefined keeps the outer value.

Parameters

props

FutureFlagsProviderProps

Returns

Element


useFutureFlag()

useFutureFlag(flag): boolean

Whether the app turned flag on; false outside any FutureFlagsProvider.

Parameters

flag

keyof FutureFlags

Returns

boolean