import { Canvas, Meta, Story, Source } from "@storybook/addon-docs/blocks";
import * as CardStories from "./card--no-action.stories";
import defaultdata from "./card.data.json";

<Meta of={CardStories} />

# Cards

## Accessibility considerations - heading level

Use the field `headingTag` to apply the correct heading level of your card title (h1 should be followed by h2, then h3 etc) and keep the semantic structure of your page correct.

<Canvas of={CardStories.Default} />

## Design resources

- [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-98141&mode=design&t=d1ly5fkj79b8cqJ6-0)
- [Design System website](https://www.design-system.health.qld.gov.au/components/cards)
- [Bootstrap component](https://getbootstrap.com/docs/5.3/components/card/)

## Example Component data

<Source language="json" code={JSON.stringify(defaultdata, null, 2)} />
