Image
An image from a host-supported source.
Props
| Prop | Type | Required |
|---|---|---|
accessibilityHint | string | No |
enabled | boolean | No |
fit | string | No |
label | string | No |
placeholder | string | No |
semantics | string | No |
source | string | 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
<Image source="images/documentation/fieldtrip-coast.jpg" label="A coastal town" class="w-48 h-32" />
Defaults, values, and validation
Set a useful label or explicit decorative semantics. placeholder accepts default/none. Asset base URLs and loading are host-owned; local bundled paths must exist.
Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.
Events
on-load
load carries {success: boolean}.
Local commands
No local commands.