UNPKG

@theme-ui/components

Version:

Primitive layout, typographic, and other components for use with Theme UI.

16 lines (15 loc) 587 B
import React from 'react'; import { BoxOwnProps } from './Box'; import type { Assign, ForwardRef } from './types'; export interface IconButtonProps extends Assign<React.ComponentPropsWithRef<'button'>, BoxOwnProps> { size?: number | string; } /** * Transparent button for SVG icons * * IconButton variants can be defined in the `theme.buttons` object. * By default the IconButton component will use styles defined in `theme.buttons.icon`. * * @see https://theme-ui.com/components/icon-button */ export declare const IconButton: ForwardRef<HTMLButtonElement, IconButtonProps>;