From 9179238a515b9c84dc247fe6751b58a5984486b7 Mon Sep 17 00:00:00 2001 From: Rafael Melo Date: Fri, 2 Feb 2024 17:43:29 -0300 Subject: [PATCH] chore: move jsdoc comments to component --- src/components/Card/Card.stories.tsx | 7 ------- src/components/Card/Card.tsx | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/Card/Card.stories.tsx b/src/components/Card/Card.stories.tsx index 05a621187..60ab25ee3 100644 --- a/src/components/Card/Card.stories.tsx +++ b/src/components/Card/Card.stories.tsx @@ -5,13 +5,6 @@ import Card from "./"; import Col from "../Col"; import Row from "../Row"; -/** - * This is a [React](https://reactjs.org/) component for the Vanilla [Card](https://docs.vanillaframework.io/patterns/card/). - *
- *
- * There are four card styles available to use in Vanilla: default, header, highlighted and overlay. Our card component will expand to fill the full width of its parent container. - */ - const meta: Meta = { title: "Card", component: Card, diff --git a/src/components/Card/Card.tsx b/src/components/Card/Card.tsx index 62227f8e8..564f3f0b8 100644 --- a/src/components/Card/Card.tsx +++ b/src/components/Card/Card.tsx @@ -35,6 +35,12 @@ export type Props = PropsWithSpread< HTMLProps >; +/** + * This is a [React](https://reactjs.org/) component for the Vanilla [Card](https://docs.vanillaframework.io/patterns/card/). + * + * There are four card styles available to use in Vanilla: default, header, highlighted and overlay. Our card component will expand to fill the full width of its parent container. +*/ + const Card = ({ children, className,