← All native models

Native model

portal_component

Declare a named portal_component value and reference it as portal_component.your_name. Models have no separate platform identity or lifecycle.

Topics: Surfaces

Fields

One component: its props and slots, template, CSS and server Lua.

object
contractOptional
nameRequired

The component's name, used as ui:name in templates; a bundled name replaces that component.

string
Minimum length
1
serverOptional
styleOptional
templateRequired

Only the fields listed here are accepted.