Telegram share button

Embed a telegram share button in your svelte application.

Demo

Code

Svelte
1<script>
2  import { Share } from 'sveltegram';
3</script>
4
5<Share
6  url="https://sveltegram.a3k.me"
7  comment="Telegram widgets for Svelte"
8  size="medium"
9/>

API

Please refer to Telegram documentation for more details.

url required
string
—
Absolute URL of the page you want to share
comment
string
—
Text sent along with the link, the user can edit it before sending
size
string
medium
Button size. choices are [medium, large]
showText
boolean
true
Whether the button shows the "Share" label or only the Telegram logo