Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 747 Bytes

Card.docs.mdx

File metadata and controls

24 lines (15 loc) · 747 Bytes

import { Canvas, Markdown, Meta, Primary } from "@storybook/blocks"; import * as CardStories from "./Card.stories.tsx"; import README from "../../../../packages/css/src/components/card/README.md?raw";

{README}

With Tagline

A card can display a tagline above the title, a short term like a category or type of information. Wrap the tagline and the title in a Card.HeadingGroup. This ensures screen readers first read the title and then the tagline.

With Image

A card often displays the image of the detail page. Use Aspect Ratio for the correct aspect ratio.