Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<div class="flex flex-col gap-8">
<div class="midwest-social-preview-card midwest-social-preview-twitter">
<div class="midwest-social-preview-header"><span class="midwest-social-preview-wordmark">X</span></div>
<div class="midwest-social-preview-twitter-body">
<div class="midwest-social-preview-twitter-avatar-col">
<div class="midwest-social-preview-avatar">
<img src="https://i.pravatar.cc/100?u=jane" alt="Jane Smith">
</div>
</div>
<div class="midwest-social-preview-twitter-content-col">
<div class="midwest-social-preview-profile">
<div class="midwest-social-preview-profile-left">
<div class="midwest-social-preview-name">
<h1>Jane Smith</h1>
<p>@janesmith · Now</p>
</div>
</div>
<div class="midwest-social-preview-profile-right">
<div class="midwest-icon midwest-social-preview-ellipsis">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Chevron down"><title>Chevron down</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M112 184l144 144 144-144"></path></svg>
</div>
</div>
</div>
</div>
<div class="midwest-social-preview-body">
<p>Just shipped a new feature! Really proud of the team's work on this release.</p>
</div>
<div class="midwest-social-preview-mosaic mosaic-1 mosaic-rounded">
<img src="https://picsum.photos/seed/tw1/450/300" alt="">
</div>
</div>
</div>
</div>
<div class="midwest-social-preview-card midwest-social-preview-twitter">
<div class="midwest-social-preview-header"><span class="midwest-social-preview-wordmark">X</span></div>
<div class="midwest-social-preview-twitter-body">
<div class="midwest-social-preview-twitter-avatar-col">
<div class="midwest-social-preview-avatar">
<img src="https://i.pravatar.cc/100?u=jane" alt="Jane Smith">
</div>
</div>
<div class="midwest-social-preview-twitter-content-col">
<div class="midwest-social-preview-profile">
<div class="midwest-social-preview-profile-left">
<div class="midwest-social-preview-name">
<h1>Jane Smith</h1>
<p>@janesmith · Now</p>
</div>
</div>
<div class="midwest-social-preview-profile-right">
<div class="midwest-icon midwest-social-preview-ellipsis">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Chevron down"><title>Chevron down</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M112 184l144 144 144-144"></path></svg>
</div>
</div>
</div>
</div>
<p class="midwest-social-preview-twitter-reply-to">
Replying to <span class="midwest-social-preview-twitter-mention">@designsystems</span>
</p>
<div class="midwest-social-preview-body">
<p>Thanks for the kind words! We've been working on this for months.</p>
</div>
</div>
</div>
</div>
<div class="midwest-social-preview-card midwest-social-preview-twitter">
<div class="midwest-social-preview-header"><span class="midwest-social-preview-wordmark">X</span></div>
<div class="midwest-social-preview-twitter-body">
<div class="midwest-social-preview-twitter-avatar-col">
<div class="midwest-social-preview-avatar">
<img src="https://i.pravatar.cc/100?u=jane" alt="Jane Smith">
</div>
</div>
<div class="midwest-social-preview-twitter-content-col">
<div class="midwest-social-preview-profile">
<div class="midwest-social-preview-profile-left">
<div class="midwest-social-preview-name">
<h1>Jane Smith</h1>
<p>@janesmith · Now</p>
</div>
</div>
<div class="midwest-social-preview-profile-right">
<div class="midwest-icon midwest-social-preview-ellipsis">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Chevron down"><title>Chevron down</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M112 184l144 144 144-144"></path></svg>
</div>
</div>
</div>
</div>
<div class="midwest-social-preview-body">
<p>This is exactly what we needed!</p>
</div>
<div class="midwest-social-preview-twitter-quote">
<div class="midwest-social-preview-name">
<h1>Design Systems Weekly</h1>
<p>@designsystems</p>
</div>
<div class="midwest-social-preview-body">
<p>Announcing our new component library v2.0 with 50+ components.</p>
</div>
</div>
</div>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<div class="flex flex-col gap-8">
<%# Standard tweet %>
<%= midwest_social_preview_twitter(
name: "Jane Smith",
handle: "@janesmith",
content_text: "Just shipped a new feature! Really proud of the team's work on this release.",
avatar_url: "https://i.pravatar.cc/100?u=jane",
images: ["https://picsum.photos/seed/tw1/450/300"]
) %>
<%# Reply tweet %>
<%= midwest_social_preview_twitter(
name: "Jane Smith",
handle: "@janesmith",
content_text: "Thanks for the kind words! We've been working on this for months.",
avatar_url: "https://i.pravatar.cc/100?u=jane",
reply_to: "@designsystems"
) %>
<%# Quote tweet %>
<%= midwest_social_preview_twitter(
name: "Jane Smith",
handle: "@janesmith",
content_text: "This is exactly what we needed!",
avatar_url: "https://i.pravatar.cc/100?u=jane",
quote_text: "Announcing our new component library v2.0 with 50+ components.",
quote_name: "Design Systems Weekly",
quote_handle: "@designsystems"
) %>
</div>

No assets to display.
Add a .js or .css file alongside the component to see it here.

Accessibility

Figma embed for Social Preview/twitter

Annotate a preview to embed its Figma design here:

@figma "https://figma.com/..."