API reference
Generated by scripts/gen-guide-reference.mjs from the declaration files of the build (packages/*/dist/**/*.d.ts): every export an app imports, with its documentation comment. Signatures are shortened to one line; your editor shows the full types.
@luxel-framework/ui
Components for views (TSX).
| Export | Kind | Description |
|---|---|---|
| Action | const | A button that sends a server event. There is no onClick: the logic runs on the server (defineEvent, Sprint 6). What changes locally after success is declared in onSuccess. / |
| ActionProps | interface | — |
| Bar | const | A horizontal bar, in an item template (Sprint 7). */ |
| BarProps | interface | A horizontal bar in a collection's item template (Sprint 7): value over scale, both item fields. */ |
| Chart | const | A column chart: fixed template, server values, SVG scaling (Sprint 7). */ |
| ChartProps | interface | A column chart (Sprint 7): columns names a numbers() path (one value per column), scale a number() path (the largest value, computed by the server or PostgreSQL). The template is fixed: an SVG whose viewBox height is the scale and whose columns' heights are the values; the browser's SVG engine scales them. Nothing is computed in the browser. / |
| ClassName | type | Space-separated class tokens ([a-z][a-z0-9_-], at most 8): styles live in your stylesheet. / |
| Collection | const | — |
| CollectionComponent | type | Generic over the collection it binds: with a screen's accessor, the item template's fields are the declared ones. */ |
| CollectionItem | type | A collection item seen from the item template: placeholders for server state. */ |
| CollectionProps | type | — |
| Component | type | An @luxel-framework/ui component: called through JSX, it returns a build-time element. */ |
| COMPONENT | const | Marks an @luxel-framework/ui component function; the value is the component's name. */ |
| COMPONENT_PROPS | const | The props each component accepts (the compiler reports any other one). */ |
| componentName | function | The @luxel-framework/ui component name of a JSX type, or null when it is not one of ours. */ |
| ContainerTag | type | Elements a structural container may render as (render.dom@1 containers; Sprint 7: tables and lists). */ |
| createElement | function | — |
| DataClass | type | Classification of the data a view shows (VSA-0001 §5). */ |
| ELEMENT | const | Marks an element object. */ |
| EventRef | interface | An event accessor (events.add). */ |
| Field | const | An input. Its value is sent with the ‹Action> of its form; the server validates it (the browser never decides). type="decimal" is money typed as text: never a float. / |
| FieldProps | type | name: zone id and event field name, unique in the view ([a-z][a-z0-9]*). In a screen (ADR-061), for instead: the input this field fills (events.‹event>.inputs.‹name>), which gives the name and the input's kind and bounds. One or the other, never both. / |
| FRAGMENT | const | The JSX fragment (<>…‹/>). */ |
| InputRef | interface | An input accessor (events.add.inputs.name). */ |
| isElement | function | — |
| isItemField | function | — |