@theme-ui/components
Version:
Primitive layout, typographic, and other components for use with Theme UI.
17 lines (16 loc) • 638 B
TypeScript
import React from 'react';
import { IconButtonProps } from "./IconButton.js";
import type { ForwardRef } from "./types.js";
export declare const CloseIcon: React.JSX.Element;
export interface CloseProps extends Omit<IconButtonProps, 'children'> {
}
/**
* Button with close (×) icon.
*
* The Close component renders as a <button> element by default.
* Pass any button attributes as props to the component.
*
* Close component variants can be defined in the theme.buttons object.
* The Close component uses theme.buttons.close as its default variant style.
*/
export declare const Close: ForwardRef<HTMLButtonElement, CloseProps>;