Methods
# inner ContainerWithCard(props) → {React.ReactElement}
A helper component to render a Container with a Card and CardContent
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
object
|
props object | |
cardProps |
object
|
<optional> |
props for the Card component |
cardContentProps |
object
|
<optional> |
props for the CardContent component |
children |
object
|
children to render |
- React component
React.ReactElement
Example
<ContainerWithCard>
<Typography variant="h5" component="h2">
This is a card
</Typography>
</ContainerWithCard>