UNPKG

@activecollab/components

Version:

ActiveCollab Components

27 lines 949 B
import React from "react"; import { ButtonProps } from "../Button"; export interface IconButtonProps extends ButtonProps { } /** * @component IconButton * @description * IconButton composes the Button component except that it renders only an icon. * Since IconButton only renders an icon, you have to pass the aria-label prop, * so screen readers can give meaning to the button. * * @props See Button props. * * @example * return ( * <IconButton className="mr-2" variant="primary" size="medium" aria-label="Close dialog"> * <CloseIcon /> * </IconButton> * ) * @see * https://system.activecollab.com/?path=/story/components-button-indicators-button--icon-button * https://design.activecollab.com/docs/components/button */ export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & { children?: React.ReactNode; } & React.RefAttributes<HTMLButtonElement>>; //# sourceMappingURL=IconButton.d.ts.map