https://github.com/24webcomponents/hold-button-element
Hold the button!
https://github.com/24webcomponents/hold-button-element
24-web-components custom-element web-component
Last synced: 12 months ago
JSON representation
Hold the button!
- Host: GitHub
- URL: https://github.com/24webcomponents/hold-button-element
- Owner: 24webcomponents
- License: mit
- Created: 2022-12-08T17:30:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-02T17:38:26.000Z (12 months ago)
- Last Synced: 2025-07-02T18:38:07.836Z (12 months ago)
- Topics: 24-web-components, custom-element, web-component
- Language: TypeScript
- Homepage:
- Size: 171 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# <custom-element> element
Boilerplate for creating a custom element.
## Installation
Available on [npm](https://www.npmjs.com/) as [**@github/custom-element-element**](https://www.npmjs.com/package/@github/custom-element-element).
```
$ npm install --save @github/custom-element-element
```
## Usage
### Script
Import as ES modules:
```js
import '@github/custom-element-element'
```
Include with a script tag:
```html
```
An example Custom Element. This documentation ends up in the
README so describe how this elements works here.
You can event add examples on the element is used with Markdown.
```
<custom-element></custom-element>
```
## Browser support
Browsers without native [custom element support][support] require a [polyfill][].
- Chrome
- Firefox
- Safari
- Microsoft Edge
[support]: https://caniuse.com/custom-elementsv1
[polyfill]: https://github.com/webcomponents/custom-elements
## License
Distributed under the MIT license. See LICENSE for details.