UNPKG

@wordpress/components

Version:
26 lines (25 loc) 671 B
import clsx from "clsx"; import { forwardRef } from "@wordpress/element"; import { jsx as _jsx } from "react/jsx-runtime"; function UnforwardedColorIndicator(props, forwardedRef) { const { className, colorValue, ...additionalProps } = props; return /* @__PURE__ */ _jsx("span", { className: clsx("component-color-indicator", className), style: { background: colorValue }, ref: forwardedRef, ...additionalProps }); } const ColorIndicator = forwardRef(UnforwardedColorIndicator); var color_indicator_default = ColorIndicator; export { ColorIndicator, color_indicator_default as default }; //# sourceMappingURL=index.js.map