Skip to content

Embed

Sandboxed nested surface (own data and ids); its event actions fire action {name, context}; bad = an error box.

Group: Layout · Kind: native

example
result card · own data
Testsweb unit ×4 shards
Green
Passed
2,730
Took
4m 12s
question card · reply
Ship the Embed PR now?
bad surface · error box

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-embed on Web
exponential-ui-embed on iOS
exponential-ui-embed on Android
exponential-ui-embed on Desktop
Prop Type Required Bindable Description
surface object yes yes {root: a nested component, data?: object}.
  • on.action: runs an action

None.

none

No basic catalog component maps here.

A native component: every renderer paints it directly.

Role: none

no role of its own: the nested surface’s nodes join the host’s order in place; the error box is an Alert

Keys Action
None of its own Tab moves through the nested surface’s controls in place

Recipe parts: Embed/root

Keyed by: :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover :warning :info

Themes · Write a theme

Box · Stack · Grid · Card · Window · Separator · List · Resizable