spectre.css-js
v1.0.3
Published
JavaScript code base for Spectre.css
Maintainers
Readme
Spectre.js
Spectre.js - JavaScript components logic for Spectre.css framework
This package contains several components ready-to-use:
- Chips
- Tabs
- Toast
- Auto-complete
See docs for the details
Installation
You have to run following command to add a dependency to your project
npm i spectre.css-jsUsage
After package installation you may use Spectre.js by two methods:
- Include components with automatic registration (
dist/spectre.bundle.js) - Import classes and register only necessary for your project (
dist/spectre.jsorsrc/spectre.js)
Tasks
- Build sources -
npm run build - Start file watcher for recompiling -
npm run watch - Start webpack dev server -
npm run start - Build sources for production (with optimization) -
npm run production - Clean '
dist' folder -npm run clear
