@guestbell/react-page-plugins
Version:
Plugins we use in GuestBell for working with amazing react-page package
16 lines • 502 B
JavaScript
import * as React from 'react';
export var ColorComponent = function ColorComponent(_ref) {
var attributes = _ref.attributes,
children = _ref.children,
leaf = _ref.leaf;
if (leaf.color) {
var color = leaf.color;
children = /*#__PURE__*/React.createElement("span", {
style: {
color: "rgba(".concat(color.r, ",").concat(color.g, ",").concat(color.b, ",").concat(color.a, ")")
}
}, children);
}
return children;
};
//# sourceMappingURL=ColorComponent.js.map