F+Foldkit Plus
HomeLearnPackagesComponentsPrimitivesDemosBlogGitHub ↗

Mixins

Guides

foldkit-mixins

  • Overview
  • How slots, styles, and behaviors fit together
  • What the resolver guarantees
  • Slots: the public contract
  • Style: appearance as data
  • Behavior: reusable element-level interaction
  • SlotView
  • Accessibility contracts
  • Testing and static output
  • Foundations in the first paint
  • The stylesheet as a file

foldkit-mixins-surface

  • Overview
  • Attach typed Behaviors without repeating types

foldkit-mixins-ui

  • Overview
  • Look, state, drawing, features: one factory each
  • Customizing @foldkit/ui components with adapters
  • Finding a widget
  • Buttons, actions and commands
  • Text and number fields
  • Choosing a value
  • Menus and overlays
  • Navigation and structure
  • Showing content
  • Feedback and status
  • Long lists and scrolling
  • Chat
  • Mechanisms shared by many widgets
  • Recipes
  • One factory for each part
  • Why some components needed a fork

Inside-out composition

  • Overview
  • Five concepts that fit together
  • Why Slots beat className props
  • Separating Style from Behavior
  • A first slotted field
  • How the resolver prevents attachment conflicts
  • Adapting @foldkit/ui components
  • Structural and rendered accessibility checks

Authoring components

  • Overview
  • Choose the right rung before building
  • Building filter chips, step by step
  • Checklist for reusable widgets and primitives
  • Common pitfalls when authoring components

API

foldkit-mixins

  • foldkit-mixins
  • foldkit-mixins/layers
  • foldkit-mixins/theme
  • foldkit-mixins/theme/runtime
  • foldkit-mixins/theme/knob-data
  • foldkit-mixins/layout
  • foldkit-mixins/defaults
  • foldkit-mixins/prose
  • foldkit-mixins/app
  • foldkit-mixins/utilities
  • foldkit-mixins/testing
  • foldkit-mixins/foundations
  • foldkit-mixins/vite

foldkit-mixins-surface

  • foldkit-mixins-surface

foldkit-mixins-ui

  • foldkit-mixins-ui

Open source, MIT
Foldkit 0.170 · Effect 4

Mixins / foldkit-mixins-ui

EmptyPreset

type · packages/mixins-ui/src/empty.ts:60

type EmptyPreset = Pick<EmptyView<never>, 'style'> & {
  readonly mixins?: MixinList<never>
}

What an Empty is given once: its look.

Previousfoldkit-mixins-ui

Edit on GitHub ↗

This site is a Foldkit Plus application, rendered at build time with foldkit-ssr. Its source

FoldkitEffectGitHub

Menu

HomeLearnPackagesComponentsPrimitivesDemosBlogGitHub ↗

Mixins

Guides

foldkit-mixins
  • Overview
  • How slots, styles, and behaviors fit together
  • What the resolver guarantees
  • Slots: the public contract
  • Style: appearance as data
  • Behavior: reusable element-level interaction
  • SlotView
  • Accessibility contracts
  • Testing and static output
  • Foundations in the first paint
  • The stylesheet as a file
foldkit-mixins-surface
  • Overview
  • Attach typed Behaviors without repeating types
foldkit-mixins-ui
  • Overview
  • Look, state, drawing, features: one factory each
  • Customizing @foldkit/ui components with adapters
  • Finding a widget
  • Buttons, actions and commands
  • Text and number fields
  • Choosing a value
  • Menus and overlays
  • Navigation and structure
  • Showing content
  • Feedback and status
  • Long lists and scrolling
  • Chat
  • Mechanisms shared by many widgets
  • Recipes
  • One factory for each part
  • Why some components needed a fork
Inside-out composition
  • Overview
  • Five concepts that fit together
  • Why Slots beat className props
  • Separating Style from Behavior
  • A first slotted field
  • How the resolver prevents attachment conflicts
  • Adapting @foldkit/ui components
  • Structural and rendered accessibility checks
Authoring components
  • Overview
  • Choose the right rung before building
  • Building filter chips, step by step
  • Checklist for reusable widgets and primitives
  • Common pitfalls when authoring components

API

foldkit-mixins
  • foldkit-mixins
  • foldkit-mixins/layers
  • foldkit-mixins/theme
  • foldkit-mixins/theme/runtime
  • foldkit-mixins/theme/knob-data
  • foldkit-mixins/layout
  • foldkit-mixins/defaults
  • foldkit-mixins/prose
  • foldkit-mixins/app
  • foldkit-mixins/utilities
  • foldkit-mixins/testing
  • foldkit-mixins/foundations
  • foldkit-mixins/vite
foldkit-mixins-surface
  • foldkit-mixins-surface
foldkit-mixins-ui
  • foldkit-mixins-ui

Open source, MIT
Foldkit 0.170 · Effect 4