Mixins / Authoring components

Choose the right rung before building

Start at the highest rung that solves your problem:

RungWhen to use itWhat you write
1. Shipped widgetfoldkit-mixins-ui has itOptions, Messages, recipe variant
2. Customized widgetWidget fits except a style or keyRecipes.X.extend, mixins, routes, words
3. App componentUnique to this appSlots, SlotView, primitives, Style
4. Reusable widgetShared across appsRung 3 + catalog recipe and A11y.pattern
5. PrimitiveReusable interaction patternBundle, Mount, and/or Behavior

The pieces you assemble on rungs 3–5 fit together as data: a Slots contract names the elements (root, list, chip); SlotView renders markup through slots.<name>.attrs(...); Style and Recipe attach theme-token CSS across cascade layers; Behavior attaches computed attributes and mounts; and Bundle packages child state (Model, Message, update, helpers).