ButtonGroupProps

Props for the ButtonGroup component.

Definition

interface ButtonGroupProps {
    /**
     * Array of button configurations to render.
     */
    buttons: ButtonGroupItem[];

    /**
     * ID of the currently active button.
     */
    activeId?: string;

    /**
     * Button variant applied to all buttons. Defaults to 'secondary'.
     */
    variant?: ButtonComponentVarient;

    /**
     * Additional CSS class names to apply to the button group container.
     */
    className?: string;

    /**
     * Custom inline styles for the button group container.
     */
    styles?: React.CSSProperties;

    /**
     * Callback triggered when a button is clicked, receiving the button's ID.
     */
    onButtonClick?: (buttonId: string) => void;
}

Usage

Last updated