"use client";
import { getSize } from "../../core/utils/get-size/get-size.mjs";
import { createVarsResolver } from "../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs";
import { useProps } from "../../core/MantineProvider/use-props/use-props.mjs";
import { useStyles } from "../../core/styles-api/use-styles/use-styles.mjs";
import { factory } from "../../core/factory/factory.mjs";
import { Box } from "../../core/Box/Box.mjs";
import Kbd_module_default from "./Kbd.module.mjs";
import { jsx } from "react/jsx-runtime";
//#region packages/@mantine/core/src/components/Kbd/Kbd.tsx
const varsResolver = createVarsResolver((_, { size }) => ({ root: { "--kbd-fz": getSize(size, "kbd-fz") } }));
const Kbd = factory((_props) => {
	const props = useProps("Kbd", null, _props);
	const { classNames, className, style, styles, unstyled, vars, attributes, ...others } = props;
	return /* @__PURE__ */ jsx(Box, {
		component: "kbd",
		...useStyles({
			name: "Kbd",
			classes: Kbd_module_default,
			props,
			className,
			style,
			classNames,
			styles,
			unstyled,
			attributes,
			vars,
			varsResolver
		})("root"),
		...others
	});
});
Kbd.classes = Kbd_module_default;
Kbd.varsResolver = varsResolver;
Kbd.displayName = "@mantine/core/Kbd";
//#endregion
export { Kbd };

//# sourceMappingURL=Kbd.mjs.map