@svgrid/sv
v3.0.0
Published
Svelte CLI add-on for SvGrid: npx sv add @svgrid
Downloads
332
Maintainers
Readme
@svgrid/sv
The Svelte CLI add-on for SvGrid.
npx sv add @svgridThat resolves to this package (@svgrid/sv), adds @svgrid/grid to your
dependencies, and optionally drops in a working demo grid.
You can combine it with official add-ons in one command:
npx sv add eslint prettier @svgridOn PowerShell, quote the argument: npx sv add '@svgrid'.
What it asks
| Prompt | Default | Effect |
| --- | --- | --- |
| Add a demo grid so you can see it working? | yes | Writes src/routes/svgrid-demo/+page.svelte in a SvelteKit project, or src/lib/SvGridDemo.svelte otherwise |
| Add the Enterprise pack? | no | Also adds @svgrid/enterprise (Excel/PDF export, pivot, Kanban, scheduler). Needs a paid license key |
The demo is written in whichever language the project already uses. It never overwrites a file that already exists.
Requirements
SvGrid is Svelte 5 only. The add-on reports itself unsupported on a Svelte 4 project rather than installing a grid that cannot run.
Stability
Community add-ons are still marked experimental by the Svelte CLI, and the
authoring API can change between sv minors. This add-on is written and tested
against [email protected]. If npx sv add @svgrid misbehaves after an sv upgrade,
npm install @svgrid/grid does the same job with no CLI involved.
License
MIT. See LICENSE.
