"use client";
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_factory = require("../../../core/factory/factory.cjs");
const require_Box = require("../../../core/Box/Box.cjs");
const require_Accordion_context = require("../Accordion.context.cjs");
const require_AccordionItem_context = require("../AccordionItem.context.cjs");
const require_Accordion_module = require("../Accordion.module.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Accordion/AccordionItem/AccordionItem.tsx
const AccordionItem = require_factory.factory((props) => {
	const { classNames, className, style, styles, vars, value, mod, ...others } = require_use_props.useProps("AccordionItem", null, props);
	const ctx = require_Accordion_context.useAccordionContext();
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AccordionItem_context.AccordionItemProvider, {
		value: { value },
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
			mod: [{ active: ctx.isItemActive(value) }, mod],
			...ctx.getStyles("item", {
				className,
				classNames,
				styles,
				style,
				variant: ctx.variant
			}),
			...others
		})
	});
});
AccordionItem.displayName = "@mantine/core/AccordionItem";
AccordionItem.classes = require_Accordion_module.default;
//#endregion
exports.AccordionItem = AccordionItem;

//# sourceMappingURL=AccordionItem.cjs.map