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):
- Direct adapters: Most
@foldkit/uicomponents pass typed attribute bundles totoView, which the adapter maps directly to named Slots. - 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 andupdate. - Native
foldkit-mixins-uiviews: Widgets with requirements beyond upstream (such as two-thumbSlider, toolbars, search fields, and data tables) render directly from Slots andfoldkit-primitives.