--- title: Card sidebar_label: Card --- import { StoryWithControls } from '../../../src/components/StorybookWrapper'; # Card A container component for grouping related content. Supports titles, borders, loading states, and hover effects. ## Live Example ## Try It Edit the code below to experiment with the component: ```tsx live function Demo() { return ( This card displays a summary of your dashboard metrics and recent activity. ); } ``` ## Card States ```tsx live function CardStates() { return (
Default card content. Hover over this card. This content is hidden while loading. Borderless card.
); } ``` ## Props | Prop | Type | Default | Description | |------|------|---------|-------------| | `padded` | `boolean` | `true` | Whether the card content has padding. | | `title` | `string` | `"Dashboard Overview"` | Title text displayed at the top of the card. | | `children` | `string` | `"This card displays a summary of your dashboard metrics and recent activity."` | The content inside the card. | | `bordered` | `boolean` | `true` | Whether to show a border around the card. | | `loading` | `boolean` | `false` | Whether to show a loading skeleton. | | `hoverable` | `boolean` | `false` | Whether the card lifts on hover. | ## Import ```tsx import { Card } from '@superset/components'; ``` --- :::tip[Improve this page] This documentation is auto-generated from the component's Storybook story. Help improve it by [editing the story file](https://github.com/apache/superset/edit/master/superset-frontend/packages/superset-ui-core/src/components/Card/Card.stories.tsx). :::