@spicy-ui/core
Version:
A themable and extensible React UI library, ready to use out of the box
9 lines (8 loc) • 391 B
TypeScript
import * as React from 'react';
import { IconButtonProps } from '../Button';
export interface CloseButtonProps extends Omit<IconButtonProps, 'children'> {
children?: never;
/** Icon shown inside the close button. */
icon?: React.ReactElement;
}
export declare const CloseButton: React.ForwardRefExoticComponent<CloseButtonProps & React.RefAttributes<HTMLButtonElement>>;