Documentation
¶
Overview ¶
Package definitions is the standard SDUI component library as data — one JSON file per component, each a name, its default params and a template of primitives (ADR 0024).
**This is the only place a component is authored.** A component is data, not code: the Platform serves this library to every client over the session (ADR 0040), and a client renders it by expanding the template against the primitives it implements natively. A component written as code in a client repository is renderable by that client alone, which is the whole thing the definition model exists to prevent — so it is a bug, not a shortcut.
The package exists because Go cannot embed across a directory boundary: the accessor has to live beside the data it embeds. `Library` is what the Platform pushes on connect; the npm package exports the same files under `./definitions/*` for JavaScript clients and the storybook.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FS fs.FS = files
FS is the raw definition files, for a consumer that wants them one at a time.
Functions ¶
Types ¶
This section is empty.