Files
Ethan Palm 3a37747f1b Content refresh (#910)
* Update Quickstart page for style and clarity

- Improve readability and flow
- Make language more concise and consistent
- Remove unnecessary periods from numbered lists
- Clarify instructions and terminology

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update Expandables component page

- Add clear introduction explaining the component's purpose
- Remove unnecessary period from description
- Improve formatting consistency for boolean values
- Enhance clarity in prop descriptions

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update Fields component page

- Add clear introduction explaining field components
- Improve consistency in component naming conventions
- Remove unnecessary periods from descriptions
- Improve punctuation and clarity
- Add comma for better readability in example

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update Icons component page

- Add clear introduction explaining the Icon component
- Improve language clarity and flow
- Remove unnecessary periods from prop descriptions
- Replace 'e.g.' with 'for example' for consistency
- Remove trailing space from inline example

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update Mermaid diagrams page

- Add clear introduction explaining Mermaid's purpose and capabilities
- Improve clarity and conciseness of descriptions
- Simplify section heading from 'Syntax for Mermaid diagrams' to 'Syntax'
- Make language more precise and user-focused
- Update code comment to be more generic

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update Steps component page

- Add clear introduction explaining the Steps component
- Improve language clarity and consistency
- Remove unnecessary periods from prop descriptions
- Add Oxford comma for better readability
- Make description more action-oriented

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update Tabs component page

- Add clear introduction explaining the Tabs component purpose
- Improve clarity and user understanding
- Remove unnecessary period from prop description
- Make description more informative about component functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update Migrations guide page

- Improve language clarity and conciseness
- Remove unnecessary periods from command descriptions
- Enhance section structure with proper headings
- Update terminology for consistency
- Add OpenAPI migration section header for better organization

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update React components page

- Improve language clarity and conciseness throughout
- Simplify and tighten explanatory text
- Fix capitalization in performance best practices
- Remove redundant phrases for better flow
- Enhance readability and user experience

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update Redirects and broken links page

- Improve language clarity and conciseness
- Remove unnecessary words like 'Simply' and 'will'
- Use present tense for more direct communication
- Fix preposition usage for better grammar
- Streamline explanations for better readability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update Support integrations page

- Improve language clarity and directness
- Remove unnecessary words for better flow
- Use more direct phrasing for instructions
- Simplify conditional language for better readability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update CI checks page

- Improve language clarity and conciseness throughout
- Remove unnecessary words and phrases
- Use present tense for more direct communication
- Fix grammar issues and improve flow
- Replace 'in-built' with 'built-in' for standard terminology
- Streamline explanations for better readability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* quickstart edits

* Update cards

* Apply style lessons learned from quickstart and cards feedback

- Use action-oriented introductions ("Use X to..." instead of "The X component...")
- Apply sentence case to all section headings ("Properties" not "Props")
- Use "Properties" consistently instead of "Props"
- Remove unnecessary periods from property descriptions
- Update component headings to sentence case
- Make language more direct and user-focused

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix typo

* review exapandables

* update fields

* update icons

* update mermaid

* update steps

* update tabs

* update migration

* Update react-components.mdx

* Update broken-links.mdx

* Update overview.mdx

* Update ci.mdx

* Document style preferences learned from content refresh project

Add detailed style guide based on patterns identified during DOC-84
content refresh work, including:
- Heading and formatting conventions
- Component introduction patterns
- Property description standards
- Language and tone preferences
- Code example best practices
- Content organization principles

These learnings will help maintain consistency in future documentation updates.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* add reviewer feedback

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-15 16:59:47 -07:00

142 lines
4.0 KiB
Plaintext

---
title: "Cards"
description: "Highlight main points or links with customizable layouts and icons"
icon: "square-mouse-pointer"
---
Use cards to create visual containers for content. Cards are flexible containers that can include text, icons, images, and links.
## Basic card
<Card title="Card title" icon="text" href="/components/columns">
This is how you use a card with an icon and a link. Clicking on this card
brings you to the Columns page.
</Card>
```mdx Card example
<Card title="Card title" icon="text" href="/components/columns">
This is how you use a card with an icon and a link. Clicking on this card
brings you to the Columns page.
</Card>
```
## Card variations
Cards support several layout and styling options to fit different content needs.
### Horizontal layout
Add the `horizontal` property to display cards in a more compact, horizontal layout.
<Card title="Horizontal card" icon="text" horizontal>
This is an example of a horizontal card.
</Card>
```mdx Horizontal card example
<Card title="Horizontal card" icon="text" horizontal>
This is an example of a horizontal card.
</Card>
```
### Image cards
Add an `img` property to display an image at the top of the card.
<Card title="Image card" img="https://mintlify-assets.b-cdn.net/yosemite.jpg">
This is an example of a card with an image.
</Card>
```mdx Image card example
<Card title="Image card" img="/images/card-with-image.png">
This is an example of a card with an image.
</Card>
```
### Link cards with custom CTAs
You can customize the call-to-action text and control whether an arrow appears. By default, arrows only show for external links.
<Card title="Link card" icon="link" href="/components/columns" arrow="true" cta="Click here">
This is an example of a card with an icon and a link. Clicking on this card brings you to the Columns page.
</Card>
```mdx Link card example
<Card
title="Link card"
icon="link"
href="/components/columns"
arrow="true"
cta="Click here"
>
This is an example of a card with an icon and a link. Clicking on this card brings you to the Columns page.
</Card>
```
## Grouping cards
Use the [Columns component](/components/columns) to organize multiple cards side by side.
<Columns cols={2}>
<Card title="First card" icon="panel-left-close">
This is the first card.
</Card>
<Card title="Second card" icon="panel-right-close">
This is the second card.
</Card>
</Columns>
```mdx Columns example
<Columns cols={2}>
<Card title="First card" icon="panel-left-close">
This is the first card.
</Card>
<Card title="Second card" icon="panel-right-close">
This is the second card.
</Card>
</Columns>
```
## Properties
<ResponseField name="title" type="string" required>
The title displayed on the card
</ResponseField>
<ResponseField name="icon" type="string or svg">
Icon to display on the card. Use a [Font Awesome icon](https://fontawesome.com/icons) name, [Lucide icon](https://lucide.dev/icons) name, or JSX-compatible SVG code wrapped in `icon={}`.
For custom SVG icons:
1. Use the [SVGR converter](https://react-svgr.com/playground/).
2. Copy the code inside the `<svg/>` tag.
3. Paste the code into your card.
4. Adjust height and width as needed.
</ResponseField>
<ResponseField name="iconType" type="string">
Font Awesome icon style: `regular`, `solid`, `light`, `thin`, `sharp-solid`, `duotone`, or `brands`.
</ResponseField>
<ResponseField name="color" type="string">
Icon color as a hex code (e.g., `#FF6B6B`).
</ResponseField>
<ResponseField name="href" type="string">
URL to navigate to when the card is clicked.
</ResponseField>
<ResponseField name="horizontal" type="boolean">
Display the card in a compact horizontal layout.
</ResponseField>
<ResponseField name="img" type="string">
URL or local path to an image displayed at the top of the card.
</ResponseField>
<ResponseField name="cta" type="string">
Custom text for the action button.
</ResponseField>
<ResponseField name="arrow" type="boolean">
Show or hide the link arrow icon.
</ResponseField>