Files
robonen eefd7abf83 feat(primitives): media-editor components, category reorg, perf + type cleanup
Reorganize components into category folders (forms/canvas/overlays/etc.); add the
media-editor headless family (timeline, curve-editor, waveform, crop, color
picker, etc.); apply perf fixes (O(1) collection lookups, plain-object drag
state, gesture-leak teardown, shallowRef color state, rect caching) and replace
source `any` with proper types.
2026-06-15 16:54:29 +07:00
..
2026-06-08 17:11:14 +07:00

@robonen/primitives playground

Minimal Vite + Vue 3 sandbox for inspecting and debugging primitives from @robonen/primitives. Imports source directly via the @primitives/* alias, so HMR works while editing components in vue/primitives/src/.

Usage

pnpm --filter @robonen/primitives-playground dev

Then open http://localhost:5180.

Adding a demo

Drop a .vue file into src/demos/. It will be picked up automatically by the sidebar (import.meta.glob('./demos/*.vue')) and addressable via the URL hash (e.g. #/Accordion).

<script setup lang="ts">
import { AccordionRoot } from '@primitives/accordion';
// or: import { AccordionRoot } from '@primitives';
</script>

Notes

  • Imports resolve to vue/primitives/src/ directly (not the built dist/), so you can poke at primitives and see changes instantly.
  • The playground is private: true and is not published.