Properties for the Show component.

interface ShowProperties {
    children?: unknown;
    fallback?: unknown;
    when: () => boolean;
}

Properties

children?: unknown

The content to show when condition is true.

fallback?: unknown

Optional content to show when condition is false. Defaults to nothing.

when: () => boolean

The condition to control when the component body should be shown. Must be a function or a signal returning true to show the body, false to hide it and instead show the optional fallback content.