@alice-ui/react
Version:
19 lines (16 loc) • 553 B
JavaScript
import {
_IconButton
} from "./chunk-NPV2CEZ4.mjs";
// src/button/close-button.tsx
import { XMarkIcon } from "@alice-ui/icons";
import { forwardRef } from "react";
import { jsx } from "react/jsx-runtime";
function CloseButton(props, ref) {
const { children = /* @__PURE__ */ jsx(XMarkIcon, {}), ...otherProps } = props;
const ariaLabel = props["aria-label"] || "Close";
return /* @__PURE__ */ jsx(_IconButton, { ref, ...otherProps, "aria-label": ariaLabel, children });
}
var _CloseButton = forwardRef(CloseButton);
export {
_CloseButton
};