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
|`share_message`|`share_message`| Required |Text to share in mastodon.|`string`|`undefined`|
55
+
|`instances`|`instances`| Not Required | List of instances to display in the select option. |`string`|`'["https://mastodon.social"]'`|
56
+
|`dark_mode`|`dark_mode`| Not Required |Option to activate dark mode.|`boolean`|`false`|
57
+
|`send_button_text`|`send_button_text`| Not Required|Text to show at the bottom of sharing in the modal.|`string`|`"Send"`|
58
+
|`icon_url`|`icon_url`| Not Required |Icon url. Put it "" to not display any icon. |`string`|`mastodon oficial logo`|
59
+
|`modal_title`|`modal_title`| Not Required |Title to display in modal. |`string`|`"Share to Mastodon"`|
60
+
|`close_button_text`|`close_button_text`| Not Required | Text to display to close modal. |`string`|`"Close"`|
61
+
|`other_instance_text`|`other_instance_text`| Not Required |Text to display on the form.|`string`|`"Other instance"`|
62
+
|`share_button_text`|`share_button_text`| Not Required |Text to show at the bottom of sharing. Put it "" to not display any text. |`string`|`"Share to Mastodon"`|
63
+
|`open`|`open`| Not Required |Variable to display the modal opened. |`boolean`|`false`|
61
64
62
65
## CSS Custom Properties (Styling)
63
-
* Important: If you are using the dark mode you will not be able to apply any color variable, because this mode will overlap the dark mode
66
+
The component could be styled with the help of CSS3 variables.
67
+
68
+
Example:
69
+
70
+
```html
71
+
<styletype="text/css">
72
+
mastodon-share-button {
73
+
--share-button-background-color:#259FFC;
74
+
--share-button-background-color-hover:#C7E7FE;
75
+
}
76
+
</style>
77
+
```
78
+
79
+
***Important**: If you are using the dark mode, you cannot apply any color variable, because this mode will overlap your css.
0 commit comments