Skip to content

Commit 6dbcd60

Browse files
committed
add info on styling with CSS
1 parent dffea24 commit 6dbcd60

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

image-embeds.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,23 @@ Embed external content using iframe elements:
172172
></iframe>
173173
```
174174

175+
## Styling with Tailwind CSS
176+
177+
Use Tailwind CSS v3 to style HTML elements. You can control layout, spacing, colors, and other visual properties. Some common classes are:
178+
179+
- `w-full` - Full width
180+
- `aspect-video` - 16:9 aspect ratio
181+
- `rounded-xl` - Large rounded corners
182+
- `block`, `hidden` - Display control
183+
- `dark:hidden`, `dark:block` - Dark mode visibility
184+
185+
186+
Tailwind CSS arbitrary values are not supported. For custom values, use the `style` prop instead.
187+
188+
```html
189+
<img style={{ width: '350px', margin: '12px auto' }} src="/path/image.jpg" />
190+
```
191+
175192
## Related resources
176193

177194
<Card title="Frame component reference" icon="frame" horizontal href="/components/frames">

0 commit comments

Comments
 (0)