SwitchProps
Props of Switch.
Props of Switch.
Import#
ts
import type { SwitchProps } from "@shadow-js/web";
Signature#
ts
interface SwitchProps {
/**
* Shown when no Match is truthy. Read lazily.
* @default undefined (nothing is rendered when no Match is truthy)
*/
readonly fallback?: unknown;
/**
* One or more {@link Match} descriptors. `null`, `undefined` and booleans are ignored.
* @default undefined (no branches; the fallback is shown)
*/
readonly children?: unknown;
}
Members#
| Name | Type | Description |
|---|---|---|
fallback? |
readonly fallback?: unknown |
Shown when no Match is truthy. Read lazily. |
children? |
readonly children?: unknown |
One or more Match descriptors. null, undefined and booleans are ignored. |