Skip to content

Commit 4748878

Browse files
committed
[Sistent] fix: add missing Card import in MDX files
The Card component was being used in the MDX examples without being imported, causing the Gatsby build to fail with "Expected component Card to be defined". Added the import from @sistent/sistent to all three files. Signed-off-by: Abhay Chaurasiya <abhaychaurasiya19@gmail.com> Signed-off-by: abhay1999 <abhaychaurasiya19@gmail.com>
1 parent 744965a commit 4748878

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/collections/sistent/components/card/code.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ component: card
44
description: A card is a contained surface that groups related information and actions about a single subject, making content easy to scan and interact with.
55
---
66

7+
import { Card, Button } from "@sistent/sistent";
8+
79
The Card component wraps MUI's Card and works with Sistent's theming out of the box. Here are the most common usage patterns.
810

911
<a id="Basic Card">

src/collections/sistent/components/card/guidance.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ component: card
44
description: A card is a contained surface that groups related information and actions about a single subject, making content easy to scan and interact with.
55
---
66

7+
import { Card } from "@sistent/sistent";
8+
79
Cards work best when they follow a consistent structure and are used intentionally. Here's how to get the most out of them.
810

911
<a id="When to Use">

src/collections/sistent/components/card/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ component: card
66
description: A card is a contained surface that groups related information and actions about a single subject, making content easy to scan and interact with.
77
---
88

9+
import { Card } from "@sistent/sistent";
10+
911
Cards are versatile containers that bring together content and actions around a single topic. They give users a clean, scannable way to browse and interact with information — whether that's a product, a profile, a post, or anything in between. Cards can live in grids, lists, or standalone layouts, and they scale well across screen sizes.
1012

1113
<a id="Types">

0 commit comments

Comments
 (0)