Tweet

Embeds a tweet and asynchronously loads the required Twitter library to do so.

<blockquote ob-tweet="url: https://twitter.com/elonmusk/status/1271016684489281536">
	Elon Musk's tweet.
</blockquote>

<blockquote ob-tweet="lang: de, url: https://twitter.com/BoredElonMusk/status/966731239200706560">
	Bored Elon's tweet.
</blockquote>
import { Watcher } from 'oblik'
import { Tweet } from 'oblik/components/tweet'

let w = new Watcher(document.body, {
	components: {
		tweet: Tweet
	}
})

w.init()

Note: The HTML element that is the Oblik component must be a <blockquote> as per the Twitter documentation.

# Options

# url

The tweet URL. Looks like https://twitter.com/{{ USER }}/status/{{ ID }}

Required.

# lang

In what language the tweet's UI is displayed.

Default: en

← Toggle Utilities →