Telegram share button
Embed a telegram share button in your svelte application.
Demo
Code
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.
urlrequiredstring—- Absolute URL of the page you want to share
commentstring—- Text sent along with the link, the user can edit it before sending
sizestringmedium- Button size. choices are [medium, large]
showTextbooleantrue- Whether the button shows the "Share" label or only the Telegram logo