CSS Toggles preview
Download a copy
The simplest, recommended way to install the polyfill is to copy it into your project.
unpkg.com and add it to
the appropriate directory in your project. Then, include it where necessary with
<script src="/path/to/css-toggles.min.js" type="module"></script>
You can also use an IIFE version if your target browsers require it:
For more advanced configuration, you can install with npm:
npm install @oddbird/css-toggles
After installing, you’ll need to use appropriate tooling to use
<script src="https://cdn.jsdelivr.net/npm/@oddbird/css-toggles@latest" crossorigin="anonymous" defer ></script>
Visit our contribution guidelines.