https://github.com/Grafikart/headless-elements
Custom HTML elements for generic components (dropdown, modal...) without style.
https://github.com/Grafikart/headless-elements
Last synced: 3 months ago
JSON representation
Custom HTML elements for generic components (dropdown, modal...) without style.
- Host: GitHub
- URL: https://github.com/Grafikart/headless-elements
- Owner: Grafikart
- Created: 2022-03-17T19:52:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-20T22:44:11.000Z (almost 3 years ago)
- Last Synced: 2024-08-05T08:09:24.269Z (7 months ago)
- Language: JavaScript
- Size: 1.6 MB
- Stars: 22
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Headless elements
[](http://npm.im/headless-elements)
[](https://github.com/Grafikart/headless-elements/actions)The goal of this project is to create a library of [Custom Elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) to stop reinventing the wheel (starting by reinventing the wheel using CustomElements) for generic components.
To use this library you juste have to import all the element or the one you want :
```js
import {CookieBanner} from 'headless-elements'
// Then you can register the component
CookieBanner.register()
```All the elements can be found on the [Storybook](https://grafikart.github.io/headless-elements/)