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

//#region src/breadcrumbs/breadcrumbsItem.tsx
/** A Breadcrumb item. */
const BreadcrumbsItem = vui((props, ref) => {
	const { className, children, ...rest } = omitThemingProps(props);
	const parentContext = useBreadcrumbsContext();
	const styles = useStyleConfig("Breadcrumbs", parentContext);
	return /* @__PURE__ */ jsx(T, {
		variant: "navigation",
		size: parentContext.size,
		alignItems: "center",
		className: cs("vui-breadcrumbs-item", className),
		ref,
		...styles.item,
		...rest,
		children
	});
});
BreadcrumbsItem.displayName = "BreadcrumbsItem";

//#endregion
export { BreadcrumbsItem as default };
globalThis.__vuiVersion__ = "4.0.0"
//# sourceMappingURL=breadcrumbsItem.js.map