Composables
Composables
Reference for every composable Vy UI exports — app-level helpers, i18n, and the low-level primitives for building your own components.
Vy UI exports composables from two packages. @vyui/kit has a handful of app-facing helpers you'll reach for directly. @vyui/core has those plus a set of primitive-authoring utilities that mirror Radix Vue / Reka UI's own exports — most app code never touches these directly.
App composables
From @vyui/kit:
- useAppConfig — read the merged
AppConfig. - useColorMode — reactive light/dark/system mode.
- useComponentIcons — leading/trailing/loading icon resolution.
- useTray — imperative navigation for an ancestor
VyTray.
Internationalization
From @vyui/core. See i18n composables for the short version, or the full i18n page for the complete story.
Building custom primitives
Advanced. These are for authoring your own headless component on top of
@vyui/core, not for typical app-building with Vy* components — skip this section unless you're building a primitive.- useId
- useFilter
- useForwardProps
- useEmitAsProps
- useForwardPropsEmits
- useForwardExpose
- useStateMachine
- usePrimitiveElement
@vyui/core has more composables under the hood powering its own gesture, animation, and focus internals. They aren't part of the public API surface and aren't documented here.Pick a composable from the sidebar to get started.