UNPKG

@trail-ui/react

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