@dxos/react-ui
    Preparing search index...

    Type Alias ShowProps<T>

    type ShowProps<T> = {
        children: ReactNode | ((value: T) => ReactNode);
        fallback?: ReactNode;
        when: T | undefined | null | false;
    }

    Type Parameters

    • T
    Index

    Properties

    children: ReactNode | ((value: T) => ReactNode)

    A render prop receives the narrowed value and defers evaluation to the taken branch.

    fallback?: ReactNode

    Rendered while when is absent.

    when: T | undefined | null | false

    Children render while this is present — anything except undefined/null/false (ui-template's present).