Pilates
    Preparing search index...

    Interface TabsProps

    interface TabsProps {
        activeKey: string;
        autoFocus?: boolean;
        focus?: boolean;
        focusId?: string;
        items: TabsItem[];
        onChange: (key: string) => void;
    }
    Index

    Properties

    activeKey: string

    Currently active tab key. Controlled — pair with onChange.

    autoFocus?: boolean

    When focusId is set, take focus on mount if no other focusable currently holds it.

    focus?: boolean

    Default true. When false, does not consume keystrokes (active tab styling still renders). Ignored when focusId is set.

    focusId?: string

    Register this strip with useFocus(id) so the surrounding <FocusProvider> can route Tab / Shift+Tab cycling through it.

    items: TabsItem[]
    onChange: (key: string) => void

    Called when the user activates a different tab via arrow / Home / End.