For AI agents: the complete documentation index is available at /ooui-react/en/llms.txt, the full documentation bundle is available at /ooui-react/en/llms-full.txt, and this page is available as Markdown at /ooui-react/en/components/tab-panel-layout/index.md.
  • English
  • TabPanelLayout

    Source | Original component

    A tab panel: an item of IndexLayout's options array, with role="tabpanel" on the root. You rarely render it directly.

    Standalone use

    active declares the active state (outputs the oo-ui-tabPanelLayout-active class). label / value / disabled are fields carried along with the tab-set object — the component swallows them so they never land as DOM attributes. The panel defaults to expanded (fills its parent via absolute positioning), so when placed on its own it needs a positioned, sized parent.

    General settings
    import { IndexLayout } from "ooui-react";
    
    function App() {
      return (
        <div style={{ position: "relative", height: 180 }}>
          <IndexLayout
            defaultValue="general"
            options={[
              { value: "general", label: "General", padded: true, children: "General settings" },
              { value: "advanced", label: "Advanced", padded: true, children: "Advanced settings" },
            ]}
          />
        </div>
      );
    }
    
    export default App;

    API

    Inherits all PanelLayout props, plus:

    PropDescriptionTypeDefault
    activeWhether this is the active panelbooleanfalse
    scrollableWhether scrollable (panels scroll by default)booleantrue
    label / value / disabledCarried with the tab-set object, swallowed by the componentReactNode / string | number / boolean—

    See also

    • The tab container (with the tabpanel wiring): IndexLayout