@stisla/vanilla
v3.0.2
Published
Stisla vanilla-JS behavior layer (no-build interactivity for the @stisla/css components). One entry registers every component; import individual modules from @stisla/vanilla/components/<name>.js to compose a subset. ESM for bundlers; the CDN build emits I
Readme
@stisla/vanilla
The vanilla-JS behavior layer for Stisla. Drives interactive components from data-stisla-* markup. Pairs with @stisla/css at the matching version.
Install
npm install @stisla/css @stisla/vanillaimport "@stisla/css";
import "@stisla/vanilla"; // every componentOr via CDN (classic script, exposes window.Stisla, auto-inits):
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@stisla/css@3/dist/stisla.css" />
<script src="https://cdn.jsdelivr.net/npm/@stisla/vanilla@3/dist/stisla.js"></script>This single entry registers every component. Want only a subset? Import the individual modules from @stisla/vanilla/components/<name>.js and register() them yourself.
Docs and source: https://github.com/stisla/stisla
