You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/src/content/docs/components/card.mdx
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,14 @@ import { getData } from '@libs/data'
8
8
9
9
Cards are flexible and extensible content containers. They include options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. **Cards have no fixed width to start**, so they’ll naturally fill the full width of its parent element, or slot into your grid columns. This is easily customized with our various [sizing options](#width).
@@ -31,6 +31,8 @@ Cards are built with as little markup and styles as possible, but still manage t
31
31
32
32
- Cards can have nearly any content, including text, images, lists, and more.
33
33
34
+
- Our examples use `<div>`s for card elements, but you can use whatever semantic HTML makes sense for your content. Use `<section>` for cards that represent a thematic grouping of content, `<article>` for self-contained compositions like blog posts or news items, or keep using `<div>`s when no additional semantics are needed.
35
+
34
36
## Content types
35
37
36
38
Cards support a wide variety of content, including images, text, list groups, links, and more. Below are examples of what’s supported.
@@ -56,7 +58,7 @@ Titles, text, and links within cards all have required class names for managing
0 commit comments