[]previous and next page

OgElement

A drawable element.

A drawable element.

Import#

ts
import type { OgElement } from "@shadow-js/dusk";

Signature#

ts
interface OgElement {
  readonly type: string | OgComponent;
  readonly props: {
    readonly style?: OgStyle;
    readonly children?: OgNode;
    readonly [name: string]: unknown;
  };
}

Members#

Name Type Description
type readonly type: string | OgComponent
props readonly props: { readonly style?: OgStyle; readonly children?: OgNode; readonly [name: string]: unknown; }