@posit-dev/shinyreact
    Preparing search index...

    Function ShinyModuleProvider

    • Provides a namespace context for Shiny module support.

      All child components using useShinyInput, useShinyOutput, or useShinyMessageHandler will automatically have their IDs prefixed with the provided namespace.

      Note: Nesting providers is supported — an inner provider overrides the outer one (it does not concatenate namespaces). If you need a combined namespace, pass the full string (e.g., "outer-inner") directly.

      Parameters

      Returns Element

      <ShinyModuleProvider namespace="myModule">
      <MyComponent />
      </ShinyModuleProvider>