@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
13 lines (10 loc) • 485 B
JavaScript
;
import { jsx } from 'react/jsx-runtime';
import * as React from 'react';
import { CloseIcon } from '../icons.js';
import { IconButton } from './icon-button.js';
const CloseButton = React.forwardRef(function CloseButton2(props, ref) {
return /* @__PURE__ */ jsx(IconButton, { variant: "ghost", "aria-label": "Close", ref, ...props, children: props.children ?? /* @__PURE__ */ jsx(CloseIcon, {}) });
});
CloseButton.displayName = "CloseButton";
export { CloseButton };