@abgov/react-components
Version:
Government of Alberta - UI components for React
39 lines (38 loc) • 1.24 kB
TypeScript
import { GoabIconButtonVariant, GoabIconSize, GoabIconType, Margins } from '@abgov/ui-components-common';
import { JSX, ReactNode } from 'react';
interface WCProps extends Margins {
ref: React.RefObject<HTMLElement | null>;
icon: GoabIconType;
size?: GoabIconSize;
variant?: GoabIconButtonVariant;
title?: string;
disabled?: string;
arialabel?: string;
action?: string;
actionArgs?: string;
actionArg?: string;
testid?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-icon-button": WCProps & React.HTMLAttributes<HTMLButtonElement>;
}
}
}
export interface GoabIconButtonProps extends Margins {
icon: GoabIconType;
size?: GoabIconSize;
variant?: GoabIconButtonVariant;
title?: string;
disabled?: boolean;
onClick?: () => void;
testId?: string;
ariaLabel?: string;
action?: string;
actionArgs?: Record<string, unknown>;
actionArg?: string;
children?: ReactNode;
}
export declare function GoabIconButton({ icon, disabled, variant, onClick, size, title, ariaLabel, testId, children, mt, mr, mb, ml, action, actionArgs, actionArg, }: GoabIconButtonProps): JSX.Element;
export {};