55 * found at http://www.apache.org/licenses/LICENSE-2.0.
66 */
77
8- import { AnchorHTMLAttributes , ButtonHTMLAttributes , SVGAttributes } from 'react' ;
8+ import { AnchorHTMLAttributes , ButtonHTMLAttributes , SVGAttributes , HTMLAttributes } from 'react' ;
99
1010export const SIZE = [ 'small' , 'medium' , 'large' ] as const ;
1111
1212export interface IButtonProps extends ButtonHTMLAttributes < HTMLButtonElement > {
13+ /** @ignore Set identifier to retrieve component styles */
14+ 'data-garden-id' ?: string ;
1315 /** Applies danger styling */
1416 isDanger ?: boolean ;
1517 /** Specifies the button size */
@@ -52,7 +54,7 @@ export interface IButtonIconProps
5254 SVGAttributes < SVGElement > { }
5355
5456export interface IAnchorProps
55- extends Pick < IButtonProps , 'isDanger' > ,
57+ extends Pick < IButtonProps , 'isDanger' | 'data-garden-id' > ,
5658 AnchorHTMLAttributes < HTMLAnchorElement > {
5759 /**
5860 * Attaches `target="_blank"` and `rel="noopener noreferrer"` to an anchor that
@@ -66,3 +68,7 @@ export interface IAnchorProps
6668 **/
6769 externalIconLabel ?: string ;
6870}
71+
72+ export interface ISplitButtonProps
73+ extends HTMLAttributes < HTMLDivElement > ,
74+ Pick < IButtonProps , 'data-garden-id' > { }
0 commit comments