--- title: Card layout: docs theme: library doc-tab: components doc-subtab: card breadcrumb: - home - documentation - components - components-card meta: variables: true colors: false sizes: false --- {% capture card_example %}
John Smith
@johnsmith
Component
“There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.”
Jeff Atwood
The card component comprises several elements that you can mix and match:
card: the main container
card-header: a horizontal bar with a shadow
card-header-title: a left-aligned bold textcard-header-icon: a placeholder for an iconcard-image: a fullwidth container for a responsive imagecard-content: a multi-purpose container for any other elementcard-footer: a horizontal list of controls
card-footer-item: a repeatable list itemYou can center the card-header-title by appending the is-centered modifier.
The card-header can have a title and a Bulma icon:
Card header
The card-image is a container for a Bulma image element:
The card-content is the main part, ideal for text content, thanks to its padding:
The card-footer acts as a list of for several card-footer-item elements: