import { SlotProps } from "../types.cjs"; import { ReactNode, Ref } from "react"; import RAC from "react-aria-components"; import { AriaLabelingProps } from "@marigold/types"; type RemovedProps = 'className' | 'style' | 'isDisabled' | 'slot'; export interface ButtonGroupProps extends Omit, AriaLabelingProps, SlotProps { /** * Cascades the variant to nested buttons. A local `variant` on a child * (`Button`, `LinkButton`, `ActionMenu`) wins over the group default. * * When unset, the group cascades `'secondary'` to nested buttons, the same * baseline as a standalone `Button`. Slot-aware parents like `Panel.Header` * and `SelectList.Option` override this with a lower-emphasis variant. * @default 'secondary' */ variant?: string; /** * Cascades the size to nested buttons. A local `size` on a child wins over * the group default. */ size?: string; /** * Disables every nested button by default. A child can re-enable itself * with `disabled={false}`. */ disabled?: boolean; /** * Orientation of the toolbar. * @default 'horizontal' */ orientation?: RAC.ToolbarProps['orientation']; /** Children of the component. */ children?: ReactNode; /** Ref to the DOM element the component renders. */ ref?: Ref; } export declare const ButtonGroup: ({ ref: refProp, ...inputProps }: ButtonGroupProps) => import("react").JSX.Element; export {};