The core library for @stenajs-webui.
npm install @stenajs-webui/coreThe core library for @stenajs-webui.
All other packages depend on core.
Box is the main building stone which most other components are derived from.
- Box
#### Components derived from Box
- Column (same as Box, content is placed in a column)
- Row (same as Box, content is placed in a row)
- Indent
- Space
- Spacing
- SeparatorLine
core includes a collection of hooks.
See src/hooks/README.md for details.
There are a few comparators that can be used to sort arrays of objects.
- byStringField
- byNumberField
``${p.firstName} ${p.lastName}
const r = users
.filter((user) => user.age > 17)
.toSorted(byStringField((i) => i.name))
.toReversed()
.map((p) => )``
.join(", ");