express.ui.card_header

express.ui.card_header(*args, container=ui.tags.div, **kwargs)

Context manager for a card header container

This function wraps card_header.

A general container for the "header" of a card. This component is designed to be provided as a direct child to card.

The header has a different background color and border than the rest of the card.

Parameters

*args : TagChild | TagAttrs = ()

Contents to the header container. Or tag attributes that are supplied to the resolved Tag object.

container : TagFunction = ui.tags.div

Method for the returned Tag object. Defaults to div.

****kwargs** : TagAttrValue = {}

Additional HTML attributes for the returned Tag.

Examples

#| standalone: true
#| components: [editor, viewer]
#| layout: vertical
#| viewerHeight: 400

## file: app.py
from shiny.express import ui

with ui.card(full_screen=True):
    ui.card_header("This is the header")
    ui.p("This is the body.")
    ui.p("This is still the body.")
    ui.card_footer("This is the footer")