LuxelEspañol

Luxel v0.2 · Reference · part 1 of 14

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).

ExportKindDescription
ActionconstA 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. /
ActionPropsinterface—
BarconstA horizontal bar, in an item template (Sprint 7). */
BarPropsinterfaceA horizontal bar in a collection's item template (Sprint 7): value over scale, both item fields. */
ChartconstA column chart: fixed template, server values, SVG scaling (Sprint 7). */
ChartPropsinterfaceA 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. /
ClassNametypeSpace-separated class tokens ([a-z][a-z0-9_-], at most 8): styles live in your stylesheet. /
Collectionconst—
CollectionComponenttypeGeneric over the collection it binds: with a screen's accessor, the item template's fields are the declared ones. */
CollectionItemtypeA collection item seen from the item template: placeholders for server state. */
CollectionPropstype—
ComponenttypeAn @luxel-framework/ui component: called through JSX, it returns a build-time element. */
COMPONENTconstMarks an @luxel-framework/ui component function; the value is the component's name. */
COMPONENT_PROPSconstThe props each component accepts (the compiler reports any other one). */
componentNamefunctionThe @luxel-framework/ui component name of a JSX type, or null when it is not one of ours. */
ContainerTagtypeElements a structural container may render as (render.dom@1 containers; Sprint 7: tables and lists). */
createElementfunction—
DataClasstypeClassification of the data a view shows (VSA-0001 §5). */
ELEMENTconstMarks an element object. */
EventRefinterfaceAn event accessor (events.add). */
FieldconstAn 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. /
FieldPropstypename: 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. /
FRAGMENTconstThe JSX fragment (<>…‹/>). */
InputRefinterfaceAn input accessor (events.add.inputs.name). */
isElementfunction—
isItemFieldfunction—
Edit this page on GitHub

This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app.

Measured when the site is built: the runtime files this page loads, compressed as they are sent.

Made by IntiOps. The Luxel 0.1.0 betas are on npm (0.1.0-beta.1, 0.1.0-beta.2), with an alpha of 0.2 (0.2.0-alpha.1): no external security review yet.