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:
The Card's content
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.
PlumaCardHeader extends BoxPlumaCardTitle extends TextThe text color. (See text color tokens)
The font family. (See font family tokens)
The font style. (See MDN font-style)
The text size. (See font size tokens)
A predefined typography style. (See text tokens)
PlumaCardSection extends BoxDefault: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.
PlumaCardActions extends ButtonGroupDefault:segmented
Whether the buttons should be rendered as a connected group (segmented) or equally
spaced apart (spaced).
Disables all buttons in the group.
Default:md
The size of the buttons.
medium and small are deprecated, use md and sm instead.
Change the color of the icon. By default, the icon inherits the button's text color. Use with care, as it can cause inconsistencies in the UI.
Overrides the icon size used within the button. Should only be used deliberately, as it can cause inconsistencies in the UI. For example, this is used in Pagination to increase the icon size.
Default:secondary
The variants of buttons to render.