import { FC, HTMLAttributes, ReactElement, ReactNode } from 'react'; /** * A built-in component that allows you to display content in a visually appealing card format. It * includes options for adding an icon, title, link and an image to related content. * * @example * ### Grouped cards * * * } * title="Callout" * href="/docs/built-ins/callout" * /> * } * title="Tabs" * href="/docs/built-ins/tabs" * /> * } * title="Steps" * href="/docs/built-ins/steps" * /> * * * ### Single card * *
* } * title="About Nextra" * href="/about" * arrow * /> * * @usage * ### Grouped cards * * Import the `` component to your page, which includes the `` component. * * Then, optionally import the icons that you want to use. To create a set of cards, follow the * example below where the `` component is used to create a card and the `` * component is used to group multiple cards together. * * ```mdx filename="MDX" * import { Cards } from 'nextra/components' * import { CardsIcon, OneIcon, WarningIcon } from '../path/with/your/icons' * * * } * title="Callout" * href="/docs/built-ins/callout" * /> * } * title="Tabs" * href="/docs/built-ins/tabs" * /> * } * title="Steps" * href="/docs/built-ins/steps" * /> * * ``` * * ### Single card * * A `` not wrapped in a `` component will not be grouped with other cards. This can * be useful if you want to display a single card in a different format than the other cards on the * page. * * ```mdx filename="MDX" * } * title="About Nextra" * href="/about" * arrow * /> * ``` */ declare const Cards: FC<{ /** * Number of columns. * @default 3 */ num?: number; } & HTMLAttributes> & { displayName: string; Card: FC<{ title: string; icon?: ReactElement; arrow?: boolean; href: string; children?: ReactNode; /** CSS class name. */ className?: string; }>; }; export { Cards };