State Pages Deprecated
Deprecated: use Web Pages for new work State pages and UI components still run, but new pages should use Web Pages: faster, simpler and fully indexable. The migration guide shows which web block replaces what.

Component Props Reference

Every RUAL component receives uid, children, uiclass, uistyle and uiattributes, plus the data you wire in yourself. This is the contract for maintaining existing custom components.

Component setup itself is on RUAL Components.

Universal props: every component gets these

PropTypePurpose
uidstringUnique instance id. Required and must be stable per instance: used for state, keys, and identity.
childrennodeNested content placed by the blueprint (nested state elements).
uiclassstringCSS classes applied to the component root. The styling hook from the blueprint.
uistylestringInline style string applied to the component root.
uiattributesstringExtra HTML attributes (for example data-*, aria-*) applied to the root.

Per-component props

ComponentProps
useTranslatetranslation_key: key to look up in cluster translations.
useInputfield: the form field name it binds to.
Iterate contexts (datatables)uid, index, columns, row: per-row data for custom cells.

Styling: spread the root props, keep the inside your own

  • Default path: accept uiclass, uistyle and uiattributes and spread them on your root element. Blueprint authors then style instances from the canvas without touching your code.
  • Keep internals your own: root-level props are the public API; style everything inside with your component's own classes.
  • Respect the platform shell: pages render inside the cluster's UI, so inherit fonts and avoid global resets in component CSS.

Getting data in: three ways

  1. Pins

    Wire blueprint values into the component's pins; params appear as props. See Components.

  2. The RUAL library

    Fetch cluster data client-side through window.RUAL. See RUAL Library.

  3. Iterate contexts

    For lists (datatables), read columns and row. See Handle Iterations.

Next steps

Migrate from State Pages Move a page from state blocks and components to web blocks. RUAL Components The component system these props belong to. RUAL Library Fetching cluster data from components. Handle Iterations Row-level rendering in datatables.

Frequently asked

Which props does every RUAL component receive?

uid, children, uiclass, uistyle and uiattributes. The uid is the unique instance id used for state, keys and identity, and the other three are the styling hooks the blueprint applies to your component's root element.

How does a custom RUAL component get data from the blueprint?

Three ways: wire blueprint values into the component's pins so they appear as props, fetch cluster data client-side through the RUAL library at window.RUAL, or read the columns and row props in iterate contexts such as datatables.

How should I style the inside of a RUAL custom component?

Accept uiclass, uistyle and uiattributes on the root element and keep everything inside on your component's own classes. Pages render inside the cluster's UI shell, so inherit fonts and avoid global resets in your component CSS.