@wordpress/global-styles-ui
Version:
Global Styles UI components for WordPress.
14 lines (13 loc) • 499 B
JavaScript
import { useStylesPreviewColors } from "./preview-hooks.mjs";
import { jsx } from "react/jsx-runtime";
// packages/global-styles-ui/src/preset-colors.tsx
function PresetColors() {
const { paletteColors } = useStylesPreviewColors();
return paletteColors.slice(0, 4).map(({ slug, color }, index) => /* @__PURE__ */ jsx("div", { style: {
flexGrow: 1,
height: "100%",
background: color
} }, `${slug}-${index}`));
}
export { PresetColors as default };
//# sourceMappingURL=preset-colors.mjs.map