@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 CHANGED
@@ -37,13 +37,24 @@ data-type に以下の値を指定できます:
37
37
 
38
38
 
39
39
  ### 4. カスタム共有ボタンを作成
40
- コンポーネント内に任意のコンテンツを挿入することで、共有ボタンをカスタマイズできます。
41
40
 
42
- ```html
43
- <nostr-share data-style="" data-text="Example Text">
44
- Share on Nostr
45
- </nostr-share>
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
  -----