Toot
A post from any Mastodon instance.
import { Toot } from 'sveltekit-embed'; 1<Toot
2 instance="mas.to"
3 username="@spences10"
4 toot_id="109252587760962553"
5/>For a post at https://mas.to/@spences10/109252587760962553, instance is the domain, username the account and toot_id the
number at the end. The @ on the username is optional.
The embed uses the instance’s own script to size itself, so it does
not take a loading prop.
Props
| Prop | Type | Default |
|---|---|---|
instance The instance’s domain, e.g. | string | '' |
username The author, with or without the leading | string | '' |
toot_id The number at the end of the post’s URL. | string | '' |
Something wrong on this page? Edit it on GitHub.