import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import T from "../t/t.js";
import { useListContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/list/listHeading.tsx
/** Displays a heading within the List. */
const ListHeading = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("List", useListContext());
	return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(T, {
		className: cs("vui-listHeading", className),
		display: "inline-block",
		px: 2,
		py: 1,
		ref,
		size: "sm",
		textTransform: "uppercase",
		weight: "medium",
		...styles.heading,
		...rest
	}) });
});
ListHeading.displayName = "ListHeading";

//#endregion
export { ListHeading as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=listHeading.js.map