Skip to content

Commit d97d34b

Browse files
committed
Update element name
1 parent af2e957 commit d97d34b

File tree

7 files changed

+171
-221
lines changed

7 files changed

+171
-221
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018 GitHub, Inc.
1+
Copyright (c) 2019 GitHub, Inc.
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# <custom-element> element
1+
# <filterable-input> element
22

33
Boilerplate for creating a custom element.
44

55
## Installation
66

77
```
8-
$ npm install @github/custom-element-element
8+
$ npm install @github/filterable-input-element
99
```
1010

1111
## Usage
1212

1313
```js
14-
import '@github/custom-element-element'
14+
import '@github/filterable-input-element'
1515
```
1616

1717
```html
18-
<custom-element></custom-element>
18+
<filterable-input></filterable-input>
1919
```
2020

2121
## Browser support

examples/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>custom-element demo</title>
5+
<title>filterable-input demo</title>
66
</head>
77
<body>
8-
<custom-element></custom-element>
9-
8+
<filterable-input></filterable-input>
9+
1010
<!-- GitHub Pages development script, uncomment when running example locally and comment out the production one -->
1111
<!-- <script src="../dist/index.umd.js"></script> -->
12-
12+
1313
<!-- GitHub Pages demo script -->
14-
<script src="https://unpkg.com/@github/custom-element-boilerplate@latest/dist/index.umd.js"></script></body>
14+
<script src="https://unpkg.com/@github/filterable-input-element@latest/dist/index.umd.js"></script></body>
1515
</html>

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow strict */
22

3-
class CustomElementElement extends HTMLElement {
3+
class FilterableInputElement extends HTMLElement {
44
constructor() {
55
super()
66
}
@@ -12,9 +12,9 @@ class CustomElementElement extends HTMLElement {
1212
disconnectedCallback() {}
1313
}
1414

15-
export default CustomElementElement
15+
export default FilterableInputElement
1616

17-
if (!window.customElements.get('custom-element')) {
18-
window.CustomElementElement = CustomElementElement
19-
window.customElements.define('custom-element', CustomElementElement)
17+
if (!window.customElements.get('filterable-input')) {
18+
window.FilterableInputElement = FilterableInputElement
19+
window.customElements.define('filterable-input', FilterableInputElement)
2020
}

0 commit comments

Comments
 (0)