ActivityProps
Props of Activity.
Props of Activity.
Import#
ts
import type { ActivityProps } from "@shadow-js/web";
Signature#
ts
interface ActivityProps {
/**
* `"visible"` shows the children; `"hidden"` keeps them alive but out of sight. Changing it
* does not rebuild the children and may be reactive.
* @default "visible"
*/
readonly mode?: ActivityMode;
/**
* The content. Built once, when the parent first renders the Activity.
* @default undefined (the Activity renders nothing)
*/
readonly children?: unknown;
}
Members#
| Name | Type | Description |
|---|---|---|
mode? |
readonly mode?: ActivityMode |
"visible" shows the children; "hidden" keeps them alive but out of sight. Changing it does not rebuild the children and may be reactive. |
children? |
readonly children?: unknown |
The content. Built once, when the parent first renders the Activity. |