| a11y_fluidPage | R Documentation |
A wrapper for shiny::fluidPage() with required title/lang, one main
landmark, optional header/nav/aside/footer, skip link, and flexible layout
CSS.
a11y_fluidPage(
...,
title,
lang = NULL,
main = NULL,
main_id = "main-content",
header = NULL,
nav = NULL,
aside = NULL,
footer = NULL
)
... |
Content to go inside |
title |
Page title (required) |
lang |
Language code (required) |
main |
(optional) |
main_id |
(optional) ID to assign if the main has no id yet
(default |
header |
(optional) Header content or |
nav |
(optional) Nav content or |
aside |
(optional) Aside content or |
footer |
(optional) Footer content or |
Enforces title and lang
Ensures exactly one <main id="main-content">
Attaches the CSS dependency (use_a11y) for flexible layout (.a11y-flow)
Allows optional header/nav/aside/footer blocks
A Shiny UI tag (page)
# Minimal accessible page
a11y_fluidPage(
title = "My App",
lang = "en",
htmltools::h1("Welcome")
)
# Page with header and footer
a11y_fluidPage(
title = "Dashboard",
lang = "de",
header = htmltools::tags$header(htmltools::h1("Dashboard")),
footer = htmltools::tags$footer("Footer content"),
htmltools::p("Main content goes here")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.