@antadesign/anta
    Preparing search index...

    Interface TabPanelPropsUnreviewed

    A tab panel inside <Tabs>. Renders a self-managing <a-tabpanel> — the element finds its <a-tabs> (its flat sibling under the same parent — Tabs renders the strip and panels with no wrapper), matches by value, and shows/hides itself off-DOM. This wrapper is a pure projection: it sets the static ARIA (role, value) and passes children straight through; Tabs never reads or toggles it.

    Use it as a direct child of <Tabs>, paired to an options entry by value. For a strip and panels in different layout regions (no shared parent), or to unmount an inactive panel (the old mounting="active" | "lazy"), drive selection with a controlled value and render the content yourself — see the Tabs docs.

    interface TabPanelProps {
        value: string;
        hideMode?: "display" | "visibility";
        className?: string;
        style?: CSSProperties;
        children?: ReactNode;
        id?: string;
        title?: string;
        slot?: string;
        tabIndex?: number;
        key?: string | number | null;
        [key: `data-${string}`]: unknown;
        [key: `aria-${string}`]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: `data-${string}`]: unknown

      Any data-* attribute is forwarded to the rendered element.

    • [key: `aria-${string}`]: unknown

      Any aria-* attribute is forwarded to the rendered element.

    Index
    value: string

    Pairs this panel with the tab (options entry) of the same value.

    hideMode?: "display" | "visibility"

    How this panel hides while inactive: display (default — removed from layout and the a11y tree) or visibility (keeps its layout box, to measure it or avoid reflow). Both stay mounted; to not render an inactive panel, render it conditionally off a controlled value (see the Tabs docs).

    display
    
    className?: string

    CSS class on the component's root element (merged with the component's own classes). Use it directly for layout and positioning — grid/flex placement, margins, alignment — rather than wrapping the component in a <div>/<span>.

    style?: CSSProperties

    Inline styles on the component's root element. Set layout/positioning here (or via className) directly on the component instead of adding a wrapper.

    children?: ReactNode

    Child elements. When provided, replaces the component's default label/content.

    id?: string

    HTML id attribute.

    title?: string

    HTML title attribute — native browser tooltip on hover.

    slot?: string

    Assigns the element to a named <slot> of a parent web component (e.g. slot="header" inside a <Card>, slot="footer" inside a <Dialog>).

    tabIndex?: number

    Tab order. Set to -1 to skip the element when tabbing.

    key?: string | number | null

    React/Preact reconciliation key when rendered inside a list. Consumed by the JSX runtime (not forwarded as a DOM attribute).