rsuite
Version:
A suite of react components
26 lines (25 loc) • 1 kB
TypeScript
import { WithAsProps, TypeAttributes, RsRefForwardingComponent } from '../internals/types';
export interface ButtonGroupProps extends WithAsProps {
/** Display block buttongroups */
block?: boolean;
/** A button can show it is currently unable to be interacted with */
disabled?: boolean;
/** Vertical layouts of button */
vertical?: boolean;
/** Horizontal constant width layout */
justified?: boolean;
/**
* An ARIA role describing the button group. Usually the default
* "group" role is fine. An `aria-label` or `aria-labelledby`
* prop is also recommended.
*/
role?: string;
/** A button group can have different sizes */
size?: TypeAttributes.Size;
}
/**
* The ButtonGroup component is used to group a series of buttons together in a single line or column.
* @see https://rsuitejs.com/components/button/#button-group
*/
declare const ButtonGroup: RsRefForwardingComponent<'div', ButtonGroupProps>;
export default ButtonGroup;