The .cc-header chrome: CalCOFI logo far left linking to
https://calcofi.io, the app's title (linking to href, its own root),
a spacer, the app's own controls in ..., and bslib's dark-mode switch.
Usage
cc_brand_header(
title,
...,
subtitle = NULL,
release = NULL,
href = "./",
toggle_id = "dark_toggle",
mode = c("dark", "light"),
brand_url = .CC_BRAND_URL
)Arguments
- title
the app's name, shown beside the logo
- ...
the app's own header controls (selects, buttons, help)
- subtitle
small muted text after the title
- release
the database release the app's data was built from, shown as
cc_release_chip()after the title;NULLfor an app not on the database- href
where the title links: the app's root
- toggle_id
id of the dark-mode switch (read it with
cc_is_dark());NULLfor no switch- mode
initial theme of the switch — pass
cc_theme()(request)- brand_url
where the assets live; the default is the only value a published app should use