UNPKG

chakra-ui

Version:

Responsive and accessible React UI components built with React and Emotion

25 lines (20 loc) 655 B
import * as React from "react"; import { ButtonProps } from "../Button"; interface IIconButton extends ButtonProps { /** * The icon to be used. Refer to the [Icons](/components/icons/) section * of the docs for the available icon options. */ icon: string; /** * If `true`, the button will be perfectly round. Else, it'll be slightly round */ isRound?: boolean; /** * A11y: A label that describes the button */ "aria-label": string; } export type IconButtonProps = IIconButton & React.RefAttributes<HTMLDivElement>; declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps>; export default IconButton;