Mixins / foldkit-mixins-ui
When to use it
Use this package when:
- you already use
@foldkit/ui; - the component exposes a consumer render seam such as
toView; - you want reusable styling, ARIA decoration, analytics, or element-level behavior around that component;
- you want conflicts to be diagnosed rather than resolved by attribute order.
Do not use it to add application/component state. State belongs in the
component's Submodel or the application Model. A Mixins Behavior contributes
element-level attributes and optional Mount behavior; it is not a hidden state
container.
If you are building your own view rather than adapting @foldkit/ui, publish
Slots directly with foldkit-mixins.
For Slot / Style / Behavior itself, read Inside-out view composition first.
Install
bash
pnpm add foldkit-mixins foldkit-mixins-ui foldkit-primitives @foldkit/uifoldkit, effect, foldkit-mixins, foldkit-primitives and @foldkit/ui are peer dependencies.