| calcite_shell | R Documentation |
The Shell is a foundational layout component in Calcite, enabling the creation of rich, interactive experiences. It provides structured slots for headers, footers, side panels, and main content.
calcite_shell(
...,
header = NULL,
footer = NULL,
panel_start = NULL,
panel_end = NULL,
panel_top = NULL,
panel_bottom = NULL,
modals = NULL,
dialogs = NULL,
alerts = NULL,
sheets = NULL
)
... |
Main content to display in the default slot (between panels) |
header |
Content for the header slot (top of shell). Typically a
|
footer |
Content for the footer slot (bottom of shell) |
panel_start |
Content for the start/left panel. Typically a
|
panel_end |
Content for the end/right panel. Typically a
|
panel_top |
Content for the top panel (below header) |
panel_bottom |
Content for the bottom panel (above footer) |
modals |
Slot for |
dialogs |
Slot for |
alerts |
Slot for |
sheets |
Slot for |
The shell organizes your application into distinct regions:
header: Top navigation bar
panel-start/panel-end: Side panels (left/right)
panel-top/panel-bottom: Top/bottom panels
Default content: Main application area (maps, charts, etc.)
footer: Bottom information/links
Overlay slots: modals, dialogs, alerts, sheets
When embedded within other content, the overlay slots (modals, dialogs, alerts, sheets) facilitate placement of these components relative to the Shell, constraining them to the shell's boundaries rather than the full page.
An object of class calcite_component which is a subclass of shiny.tag
# Basic shell with header and content
calcite_shell(
header = calcite_navigation(
calcite_navigation_logo(slot = "logo", heading = "My App")
),
"Main content goes here"
)
# Shell with sidebar panel
calcite_shell(
panel_start = calcite_shell_panel(
calcite_panel(heading = "Layers")
),
calcite_panel(heading = "Map View")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.