Blockquote
Updated on August 22, 2024
BaleadaProseBlockquote
is a dream come true for all you Twitter fiends out there! It comes with a full-featured tweet button that supports custom hashtags, shortened URLs, and mentions.
Example
Markdown
::: canTweet tweetHashtags=[twitterfiends,memers,okboomer,NeverTrump] tweetVia="BaleadaToolkit" tweetUrl="current"
> Baleada Prose Blockquotes are a dream come true for all you Twitter fiends out there!
:::
Rendered
Baleada Prose Blockquotes are a dream come true for all you Twitter fiends out there!
Props
Prop
Type
Required
Default
Description
canTweet
Boolean
no
false
Indicates whether or not the tweet button should render.
tweetText
String
no
Your
blockquote
's text contentCustom text for your tweet, in case you want to override the default.
tweetHashtags
Array
no
[]
Hashtags (Strings) that will be appended to the tweet text. Omit the
#
in your hashtags.tweetVia
String
no
none
A Twitter handle that will be mentioned in the tweet. Omit the
@
from the Twitter handle.tweetUrl
String
no
none
A URL that Twitter should shorten and append to the tweet.
You can also pass the keyword current
to make BaleadaProseBlockquote
use the URL of the page your blockquote is on.
classes
String
no
none
Adds additional classes to the component's root element.
Structure
Here's the structure of BaleadaProseBlockquote
's markup, written in Pug for simplicity:
section.baleada-prose-blockquote
section.baleada-prose-contents
slot // Your blockquote slots in here
a
svg // Twitter icon
API design compliance
[WIP]