@atlaskit/button
Version:
A button triggers an event or action. They let users know what will happen next.
27 lines (26 loc) • 1.01 kB
TypeScript
/**
* @jsxRuntime classic
* @jsx jsx
*/
import React from 'react';
export type ButtonGroupProps = {
/**
* The buttons to render inside the button group.
*/
children?: React.ReactNode;
/**
* A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
*/
testId?: string;
/**
* Refers to an `aria-label` attribute. Sets an accessible name for the button group wrapper to announce it to users of assistive technology.
* Usage of either this, or the `titleId` attribute is strongly recommended.
*/
label?: string;
/**
* ID referenced by the button group wrapper's `aria-labelledby` attribute. This ID should be assigned to the group-button title element.
* Usage of either this, or the `label` attribute is strongly recommended.
*/
titleId?: string;
};
export default function ButtonGroup({ children, testId, label, titleId, }: ButtonGroupProps): React.JSX.Element;