DynamicProps
Props of Dynamic: component plus the props of whatever it renders.
Props of Dynamic: component plus the props of whatever it renders. Every other prop
passes through, reactive getters included.
Import#
ts
import type { DynamicProps } from "@shadow-js/web";
Signature#
ts
interface DynamicProps<C extends DynamicTarget = DynamicTarget> {
/** The component to render, a tag name, or a falsy value for nothing. */
readonly component: C;
/** Any other prop is passed to the rendered component or set on the element, still reactive. */
readonly [prop: string]: unknown;
}
Members#
| Name | Type | Description |
|---|---|---|
C |
C extends DynamicTarget = DynamicTarget |
|
component |
readonly component: C |
The component to render, a tag name, or a falsy value for nothing. |