Popup
An attachment-owned controlled presentation surface.
Props
| Prop | Type | Required |
|---|---|---|
accessibilityHint | string | No |
anchor | string | No |
description | string | No |
detent | nonnegativeInteger | No |
detents | list | No |
dismissible | boolean | No |
enabled | boolean | No |
label | string | No |
mode | string | No |
semantics | string | No |
side | string | No |
value | boolean | Yes |
Types describe evaluated values. Literal native attributes use the declared decoder; use bind-* for expressions. any still has the semantic constraints listed below. Common document attributes (class, state, show, etc.) are separate from props.
Example
<Column state="{open:false}"><Button title="Open" on-press="set open to true" /><Popup model="open" mode="modal" label="Details"><Text text="Details" /></Popup></Column>
Defaults, values, and validation
mode accepts modal/anchored/edge/notification; side top/bottom/left/right. Anchored mode requires a local anchor ref. Edge top/bottom can use 1–8 increasing detents in 0.1–1 with an in-range detent index. Dismissal updates logical state immediately.
Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.
Events
on-change, on-detentChange
change carries {value: ...} with the controlled value. See this primitive’s value rules; model assigns this field before the explicit handler.
Local commands
No local commands.