import { Card } from 'welcome-ui/Card'import { Icon } from 'welcome-ui/Icon'const Example = () => {return (<><p className="mb-16">A card doesn't have padding by default. To add padding to a card, you should wrap yourcontent in a <strong>Card.Body</strong> which has default padding.</p><Card className="max-w-2/3"><Card.Body><h3 className="flex items-center gap-4"><Icon name="book-alt" size="lg" />The Jungle Book</h3><p>After a threat from the tiger Shere Khan forces him to flee the jungle, a man-cub namedMowgli embarks on a journey of self discovery with the help of panther Bagheera andfree-spirited bear Baloo.</p></Card.Body></Card></>)}export default Example
Header
The Card.Header should be placed at the top of the Card.Body component to display titles or introductory content. The onClose prop can be provided to automatically add a close button on the top right corner. The close button can be disabled by setting the disabled prop to true.
Footer
The Card.Footer should be placed at the bottom of the Card.Body component to display supplementary information or actions related to the card's content.
Sizes
You can control the padding/font-size and overall size of the Card by using the size prop with the following options: sm, md (default) and lg.
Link card
You can use the as prop to render the Card as a different HTML element, such as an anchor (<a>) tag for link cards.