Card
A container that groups related content and actions.
<Box css={{ maxWidth: 400 }}> <Card> <CardBody> <Typography> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </Typography> </CardBody> </Card> </Box>
Usage
Header
Use a header to provide more context of the cards purpose.
<Box css={{ maxWidth: 400 }}> <Card> <CardHeader>Title</CardHeader> <CardBody> <Typography> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </Typography> </CardBody> </Card> </Box>
Footer
Cards can contain actions for a user to perform.
<Box css={{ maxWidth: 400 }}> <Card> <CardHeader>Title</CardHeader> <CardBody> <Typography> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </Typography> </CardBody> <CardFooter> <ButtonGroup> <Button variant="secondary">Cancel</Button> <Button variant="primary">Submit</Button> </ButtonGroup> </CardFooter> </Card> </Box>
Props
Card Props
as?The root element to be rendered
CardBody Props
as?The root element to be rendered
CardFooter Props
as?The root element to be rendered
CardHeader Props
as?The root element to be rendered