Mixins / Inside-out composition

Adapting @foldkit/ui components

foldkit-mixins-ui brings the same Slot, Style, and Behavior model to @foldkit/ui widgets (Button, Input, Checkbox, Disclosure, Dialog, Popover, Tooltip, Tabs, RadioGroup, Calendar, HoverIntent, FileDrop, VirtualList, Meter, Progress, Nav, and Anchor):

  1. Direct adapters: Most @foldkit/ui components pass typed attribute bundles to toView, which the adapter maps directly to named Slots.
  2. Forked seams: Components that construct inner elements without toView (Menu, Listbox, ComboBox, DatePicker, Toast) adapt the upstream view structure to expose Slots while keeping upstream state and update.
  3. Native foldkit-mixins-ui views: Widgets with requirements beyond upstream (such as two-thumb Slider, toolbars, search fields, and data tables) render directly from Slots and foldkit-primitives.