Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

VoxCSS examples

These examples are intentionally tiny static pages that pull framework runtimes from CDNs so we can sanity check the built package without cloning extra tooling. Steps:

  1. Run npm install (first time only) and npm run build to refresh dist/.
  2. Serve the repo root with any static server (npx serve ., python -m http.server).
  3. Visit the example you want under /examples/*.
Path Notes
/examples/react/ React 18 + VoxCamera/VoxScene rendered via ReactDOM.
/examples/vue/ Vue 3 composition API sample.
/examples/headless/ Pure DOM/Pointer wiring using the single-root headless API (renderScene) plus low-level helpers.

Each folder includes a minimal index.html; testsuite.html adds richer controls to poke at props and state updates.

The CDN import maps keep node_modules/ out of examples/, while relying on the locally built VoxCSS bundle (dist/).

Note: we no longer ship a Svelte example in /examples/; use the @layoutit/voxcss/svelte package in your own SvelteKit/Vite app instead.