| TabContext | R Documentation |
https://mui.com/material-ui/api/tab-context/
TabContext(...)
TabContext.shinyInput(inputId, ..., value = defaultValue)
updateTabContext.shinyInput(
session = shiny::getDefaultReactiveDomain(),
inputId,
...
)
TabContext.static(..., value = NULL, defaultValue = NULL)
... |
Child elements (typically a |
inputId |
ID of the component. |
value |
Controlled selected tab value. When supplied, the caller is the
source of truth: the value is honored on every render and the wrapper never
mutates it. Combine with an |
session |
Object passed as the 'session' argument to Shiny server. |
defaultValue |
Uncontrolled initial selected tab value. The wrapper owns the active-tab state and updates it on user clicks. This is the right choice for Quarto documents and static HTML, where no external state is involved. |
value number| string
Default is NA The value of the currently selected Tab.
children node
Default is NA The content of the component.
Object with shiny.tag class suitable for use in the UI of a Shiny app.
TabContext is part of @mui/lab,
which is published on the MUI beta channel. Lab APIs may change in future minor
releases.
Pass an initial value matching one of the TabPanel values
to pre-select that panel; when omitted, the component mounts with no panel
selected (value = "") rather than uncontrolled, so a later
server-driven update does not trigger MUI's controlled/uncontrolled warning.
TabContext itself has no change event, so input[[inputId]]
reports only this initial value. To react to tab clicks on the server, read
input[[inputId]] from the TabList.shinyInput instead.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.