packages/react-components/react-card/library/README.md
React Card components for Fluent UI React
A card is a container that holds information and actions related to a single concept or object, like a document or a contact.
To import React Card components:
import { Card, CardPreview, CardHeader, CardFooter } from "@fluentui/react-components';
Example Card usage:
import { Share16Regular, ArrowReply16Regular } from '@fluentui/react-icons';
import { Button, Body1, Caption1 } from '@fluentui/react-components';
import { Card, CardHeader, CardPreview, CardFooter } from '@fluentui/react-components';
const App = () => (
<>
<Card>
<CardHeader
image={
}
header={
<Body1>
<b>Elvia Atkins</b> mentioned you
</Body1>
}
description={<Caption1>5h ago · About us - Overview</Caption1>}
/>
<CardPreview
logo={
}
>
</CardPreview>
<CardFooter>
<Button icon={<ArrowReply16Regular />}>Reply</Button>
<Button icon={<Share16Regular />}>Share</Button>
</CardFooter>
</Card>
</>
);
See the Spec.md file for background information on the design/engineering decisions of the component.
For information about the components, please refer to the API documentation.
For migration information, have a look at the migration guide.