@metreeca/tile-cell
v0.6.1
Published
Preact widgets and controls for @metreeca/tile interfaces.
Maintainers
Readme
@metreeca/tile-cell
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.
Installation
npm install preact # peer dependency
npm install @metreeca/tile-cell # this package[!WARNING]
TypeScript consumers must use
"moduleResolution": "nodenext"/"node16"/"bundler"intsconfig.json. The legacy"node"resolver is not supported.
Usage
[!NOTE]
This section introduces essential concepts; for complete coverage, see the API reference.
{TBD: usage overview and examples}
Support
- open an issue to report a problem or to suggest a new feature
- start a discussion to ask a how-to question or to share an idea
License
This project is licensed under the Apache 2.0 License – see LICENSE file for details.
