@chakra-ui/core
Version:
Responsive and accessible React UI components built with React and Emotion
33 lines (28 loc) • 690 B
TypeScript
import * as React from "react";
import { PseudoBoxProps } from "../PseudoBox";
import { Omit } from "../common-types";
interface ICloseButton {
/**
* The size of the close button
*/
size?: "lg" | "md" | "sm";
/**
* If `true`, the close button will be disabled
*/
isDisabled?: boolean;
/**
* The color of the close icon
*/
color?: string;
/**
* An accessible label for the close button
*/
"aria-label"?: string;
/**
* The type of button (defaults to button)
*/
type?: string;
}
export type CloseButtonProps = ICloseButton & Omit<PseudoBoxProps, "size">;
declare const CloseButton: React.FC<CloseButtonProps>;
export default CloseButton;