@konemono/nostr-share-component 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -6
- package/dist/nostr-share-component.es.js +804 -848
- package/dist/nostr-share-component.js +9 -19
- package/dist/nostr-share-component.umd.js +9 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,13 +37,24 @@ data-type に以下の値を指定できます:
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
### 4. カスタム共有ボタンを作成
|
|
40
|
-
コンポーネント内に任意のコンテンツを挿入することで、共有ボタンをカスタマイズできます。
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
`part(button)` と `part(text)` を使用することで、ボタンとテキストのスタイルを個別にカスタマイズできます。
|
|
42
|
+
|
|
43
|
+
```css
|
|
44
|
+
nostr-share::part(button) {
|
|
45
|
+
background-color: rgb(0, 136, 255);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
nostr-share::part(button):hover {
|
|
49
|
+
background-color: rgb(255, 0, 0);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
nostr-share::part(text) {
|
|
53
|
+
font-style: italic;
|
|
54
|
+
font-family: 'Courier New', Courier, monospace;
|
|
55
|
+
font-size: medium;
|
|
56
|
+
}
|
|
57
|
+
|
|
47
58
|
|
|
48
59
|
|
|
49
60
|
-----
|