The component can be imported via:
A Card component can be composed with the following child components:
CardHeader
CardTitle
CardHeaderCardActions
CardHeader. By default, buttons inside this section render as sm subtle buttonsCardSection
CardHeader is a CardSection internallyCardSection components are separated by a small gapA complete example, using all the available child components, looks like:
By default, a CardSection will render with:
CardCardBy setting withPadding={false}, the CardSection component will stretch
to the edges of the Card instead, which is useful for adding full-width content,
like dividers or images.
Default:'div'
What element or component should be rendered.
PlumaCardActions extends ButtonGroupDefault:'div'
What element or component should be rendered.
PlumaCardHeader extends BoxDefault:'div'
What element or component should be rendered.
Bottom margin, instead of the gap to the section below. Also takes an object keyed by breakpoint; below the first breakpoint given, the gap applies.
Top margin, instead of the gap to the section above. Also takes an object keyed by breakpoint; below the first breakpoint given, the gap applies.
Vertical margin, instead of the gaps to the sections around it. Also takes an object keyed by breakpoint; below the first breakpoint given, the gaps apply.
PlumaCardSection extends BoxDefault:'div'
What element or component should be rendered.
Bottom margin, instead of the gap to the section below. Also takes an object keyed by breakpoint; below the first breakpoint given, the gap applies.
Top margin, instead of the gap to the section above. Also takes an object keyed by breakpoint; below the first breakpoint given, the gap applies.
Vertical margin, instead of the gaps to the sections around it. Also takes an object keyed by breakpoint; below the first breakpoint given, the gaps apply.
Default:true
Whether the section should render with padding. If false, the section will stretch like a CardInset, but with a gap between other sections. When true (default), the section includes standard Card padding.
PlumaCardTitle extends TextDefault:'span'
What element or component should be rendered.