UNPKG

rsuite

Version:

A suite of react components

21 lines (20 loc) 703 B
import React from 'react'; import Button, { ButtonProps } from '../Button'; import { IconProps } from '@rsuite/icons/Icon'; import { RsRefForwardingComponent } from '../internals/types'; export interface IconButtonProps extends ButtonProps { /** Set the icon */ icon?: React.ReactElement<IconProps>; /** Set circle button */ circle?: boolean; /** The placement of icon */ placement?: 'left' | 'right'; } /** * The `IconButton` component is used to specify a button with icon. * @see https://rsuitejs.com/components/button */ declare const IconButton: RsRefForwardingComponent<typeof Button, IconButtonProps & { ref?: React.Ref<HTMLElement>; }>; export default IconButton;