@antadesign/anta
    Preparing search index...

    Function TabsUnreviewed

    • Tab strip with optional panels. Give each option a unique value and match it to a TabPanel to display content for the selected tab.

      The strip and panels render as siblings. className, id, style, and extra props apply to the strip. Keep the strip and panels under the same parent. Horizontal tabs stack in normal flow. Use a flex container to place a vertical strip beside its panels. Other children also render as siblings.

      Pass value with onStateChange for controlled selection, or defaultValue for an initial uncontrolled selection. Panels are optional when the application renders the selected content itself.

      See Install and configure for runtime setup.

      Parameters

      Returns any

      <Tabs
      defaultValue="account"
      label="Settings"
      options={[
      { value: "account", label: "Account", icon: "user" },
      { value: "security", label: "Security" },
      ]}
      >
      <TabPanel value="account"><AccountForm /></TabPanel>
      <TabPanel value="security"><SecurityForm /></TabPanel>
      </Tabs>