/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { cx, getStyles } from "../../styles/styler.js";
import { Text } from "../Text.js";
import { forwardRef } from "react";
import { jsx } from "react/jsx-runtime";
//#region src/components/Divider/DividerLabel.tsx
/**
* **The configured label element used by Divider.**
*
* @description
* DividerLabel applies the configured divider label typography and color.
*
* @category Layout
* @platform web
*/
const DividerLabel = forwardRef(function DividerLabel({ variant = "primary", textVariant = "inherit", color = "inherit", as = "span", className, ...textProps }, ref) {
	return /* @__PURE__ */ jsx(Text, {
		as,
		className: cx(variant !== "inherit" && getStyles({ dividerVariantLabel: variant }), className),
		color,
		ref,
		variant: textVariant,
		...textProps
	});
});
DividerLabel.displayName = "DividerLabel";
//#endregion
export { DividerLabel };
