mastodon-timeline

November 15, 2023 ยท View on GitHub

This component shows the most recent post of the given account. The number of shown posts can be configured.

<mastodon-timeline account="splitbrain@octodon.social" limit="5"></mastodon-timeline>

The component fetches content via the RSS feed of the account. The maximum number of posts is limited to the number of posts in the feed, which is usually 20.

Overview

A widget to display the timeline of a Mastodon account

This makes use of the RSS feed of the account.

Properties

PropertyAttributeDescriptionTypeDefault
accountaccountThe account for which the timeline should be shown in the form user@example.comstringundefined
limitlimitThe number of toots to displaynumber10

CSS Custom Properties

NameDescription
--color-backgroundbackground color of the toots
--color-linklink color
--color-texttext color used in the toots

Dependencies

Used by

Graph

graph TD;
  mastodon-widget --> mastodon-timeline
  style mastodon-timeline fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS