Guaxu Docs
    Preparing search index...

    Interface TabsProps

    Props for the Tabs root component. Requires a controlled state to manage the selected tab.

    interface TabsProps {
        children: ReactNode;
        onSelectionChange: (key: string) => void;
        selectedKey: string | null;
        variant: "primary" | "secondary";
    }
    Index

    Properties

    children: ReactNode
    onSelectionChange: (key: string) => void

    Callback fired when the user selects a different tab.

    selectedKey: string | null

    The key of the currently selected tab.

    variant: "primary" | "secondary"

    Visual style of the tabs.

    • primary: Default tab style.
    • secondary: Alternative tab style with a different visual treatment.