Skip to contents

Helper function to create Bootstrap card components for displaying content in a structured way. Useful for author profiles, feature highlights, or any content that benefits from card layout.

Usage

card(
  content,
  title = NULL,
  image = NULL,
  image_alt = NULL,
  footer = NULL,
  class = NULL,
  style = NULL
)

Arguments

content

Card content (text, HTML, or other elements)

title

Optional card title

image

Optional image URL or path

image_alt

Alt text for the image

Optional card footer content

class

Additional CSS classes for the card

style

Additional inline styles for the card

Value

HTML div element with Bootstrap card classes

HTML div element with Bootstrap card classes

Examples