https://github.com/bahrus/toggle-trait
https://github.com/bahrus/toggle-trait
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bahrus/toggle-trait
- Owner: bahrus
- License: mit
- Created: 2020-08-30T14:48:49.000Z (almost 5 years ago)
- Default Branch: baseline
- Last Pushed: 2020-09-12T06:36:44.000Z (over 4 years ago)
- Last Synced: 2025-02-02T09:46:49.573Z (4 months ago)
- Language: TypeScript
- Size: 47.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# toggle-trait
Turn a button into a toggle button.
## Example syntax:
```html
Open Drawer
import("https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/dist/shoelace/shoelace.esm.js");
import '../toggle-trait.js';
```