RegionOutletsProps interface

Module @runic-artifex/react in @runic-artifex/react 0.23.0

interface RegionOutletsProps<R extends PageReference>

No documentation.

Properties

collection

readonly collection: RegionCollection<R> | null | undefined;

The presented region collection, such as state.documents.

registry

readonly registry: ViewRegistry<R>;

No documentation.

fallback

readonly fallback?: ReactNode;

Rendered while the collection has no region. Defaults to nothing.

missing

readonly missing?: (content: R) => ReactNode;

Renders a reference whose kind has no registered component, as in ViewOutlet.

mode

readonly mode?: RegionOutletsMode;

"keep-mounted" (the default) renders every region and hides all but the selected one, so each region keeps its component and DOM. "selected" renders only the selected region.

panelProps

readonly panelProps?: (entry: RegionEntry<R>) => RegionPanelAttributes;

Returns attributes for a region's wrapper, for example { id, role: "tabpanel", "aria-labelledby" }, so a tab can point aria-controls at the panel.