chilltoolkit
v1.0.0
Published
Small helpers: debounce, throttle, uid, clamp, formatBytes, slugify and more
Maintainers
Readme
chilltoolkit
Small helpers: debounce, throttle, uid, clamp, formatBytes, slugify and more
Part of ChillAll: 88 zero-dependency UI components (accessible, dark-mode ready, SSR-safe to import). chilltoolkit is the standalone build of one of them; the chillall package contains all of them and is tree-shakeable.
Install
npm install chilltoolkitUse
import ChillToolkit from 'chilltoolkit'; // or: const ChillToolkit = require('chilltoolkit');
// see the options and methods in the source header: src/chilltoolkit.jsNo bundler? Load the file and use the global:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chilltoolkit.js"></script>
<script>console.log(ChillToolkit.version);</script>Why ChillAll components
- Zero dependencies, nothing to import for styles (CSS is injected on first use)
- Accessible: ARIA roles, keyboard support, focus management, reduced-motion
- Dark mode via
<html data-theme="dark">(seechilltheme) or the OS setting - Safe by default: text is rendered as text, HTML is an explicit opt-in
- Every instance has
destroy()
License
MIT, see the repository.
