"use client";
const require_use_props = require("../../core/MantineProvider/use-props/use-props.cjs");
const require_use_styles = require("../../core/styles-api/use-styles/use-styles.cjs");
const require_polymorphic_factory = require("../../core/factory/polymorphic-factory.cjs");
const require_Box = require("../../core/Box/Box.cjs");
const require_UnstyledButton_module = require("./UnstyledButton.module.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/UnstyledButton/UnstyledButton.tsx
const defaultProps = { __staticSelector: "UnstyledButton" };
const UnstyledButton = require_polymorphic_factory.polymorphicFactory((_props) => {
	const props = require_use_props.useProps("UnstyledButton", defaultProps, _props);
	const { className, component = "button", __staticSelector, unstyled, classNames, styles, style, attributes, ...others } = props;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
		...require_use_styles.useStyles({
			name: __staticSelector,
			props,
			classes: require_UnstyledButton_module.default,
			className,
			style,
			classNames,
			styles,
			unstyled,
			attributes
		})("root", { focusable: true }),
		component,
		type: component === "button" ? "button" : void 0,
		...others
	});
});
UnstyledButton.classes = require_UnstyledButton_module.default;
UnstyledButton.displayName = "@mantine/core/UnstyledButton";
//#endregion
exports.UnstyledButton = UnstyledButton;

//# sourceMappingURL=UnstyledButton.cjs.map