Card

Use Card component to control box-shadow.

Extends: Box

Card

<Card p={4}>
  <Heading>Card</Heading>
</Card>
With box shadow
<Card
  boxShadowSize='xl'
  borderWidth={0}
  borderRadius={6}
  p={4}>
  With box shadow
</Card>

Props

PropTypeDescription
boxShadowSizestringSets box shadow to sm, md, lg or xl
borderRadiusnumber or stringSets border-radius
borderWidthnumberSets border with 1px (default) or 2px