CardBody Edit

CardBody renders an optional content area for a <Card />.

Usage Usage

import { Card, CardBody } from '@wordpress/components';

const Example = () => (

Top ↑

Props Props

isShady isShady

Renders with a light gray background color.

  • Type: Boolean
  • Required: No
  • Default: false

Top ↑

size size

Determines the amount of padding within the component.

  • Type: String
  • Required: No
  • Default: medium

Note: This component is connected to <Card />‘s Context. Passing props directly to this component will override the props derived from context.