You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package.json: "description": "Webcomponent oscd-component following open-wc recommendations",
39
-
package.json: "main": "dist/oscd-component.js",
40
-
package.json: "module": "dist/oscd-component.js",
41
-
package.json: ".": "./dist/oscd-component.js"
42
-
```
43
-
44
-
</details>
45
-
46
-
In order to replace all instances of the string `oscd-component` in your repository at once, you can use a tool like [git sed](https://github.com/ext/git-sed/blob/master/git-sed) in order to execute a substitute expression on all files in the worktree:
47
-
48
-
```sh
49
-
git sed s/oscd-component/my-widget/g
50
-
```
51
-
52
-
Make sure to use a dash `-` in the new component name and to rename all files with names starting with `oscd-component`:
53
-
54
-
```
55
-
oscd-component.stories.ts
56
-
oscd-component.spec.ts
57
-
oscd-component.ts
58
-
```
1
+
# \<oscd-action-icon>
59
2
60
3
This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.
61
4
62
5
## Installation
63
6
64
7
```bash
65
-
npm i oscd-component
8
+
npm i @openscd/oscd-action-icon
66
9
```
67
10
68
11
## Usage
69
12
70
13
```html
71
14
<scripttype="module">
72
-
import'oscd-component';
15
+
import'@openscd/oscd-action-icon';
73
16
</script>
74
17
75
-
<oscd-component></oscd-component>
18
+
<oscd-action-icon></oscd-action-icon>
76
19
```
77
20
78
21
## Linting and formatting
@@ -117,7 +60,6 @@ To build a production version of Storybook, run
117
60
npm run storybook:build
118
61
```
119
62
120
-
121
63
## Tooling configs
122
64
123
65
For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
@@ -131,3 +73,62 @@ npm start
131
73
```
132
74
133
75
To run a local development server that serves the basic demo located in `demo/index.html`
76
+
77
+
78
+
## `src/oscd-action-icon.ts`:
79
+
80
+
### class: `OscdActionIcon`, `oscd-action-icon`
81
+
82
+
#### Superclass
83
+
84
+
| Name | Module | Package |
85
+
| ------------ | ------ | ------- |
86
+
|`LitElement`|| lit |
87
+
88
+
#### Fields
89
+
90
+
| Name | Privacy | Type | Default | Description | Inherited From |
0 commit comments