Preact widgets and controls for @metreeca/tile interfaces.
A consumer populates a screen with the single-purpose elements an app repeats: labels, icons, buttons, fields and flags that answer how a value is shown and changed, and takes from here the defaults a widget of its own has its controls observe, and the attribute values and event handlers it builds out of state. A widget takes its behaviour from the state it observes, so what it does is retuned without touching where it sits or what it looks like.
Styling is structural only: what a widget needs to work, with colour, type and spacing left to @metreeca/tile or to whoever styles the app.
npm install preact # peer dependency
npm install @metreeca/tile-cell # this package
TypeScript consumers must use "moduleResolution": "nodenext"/"node16"/"bundler" in tsconfig.json.
The legacy "node" resolver is not supported.
This section introduces essential concepts; for complete coverage, see the API reference.
{TBD: usage overview and examples}
This project is licensed under the Apache 2.0 License – see LICENSE file for details.
Button.