UNPKG

@wordpress/global-styles-ui

Version:
27 lines (26 loc) • 846 B
import { __experimentalHStack } from "@wordpress/components"; import TypographyExample from "./typography-example.mjs"; import PreviewWrapper from "./preview-wrapper.mjs"; import { jsx } from "react/jsx-runtime"; // packages/global-styles-ui/src/preview-typography.tsx const StylesPreviewTypography = ({ variation, isFocused, withHoverView }) => { return /* @__PURE__ */ jsx(PreviewWrapper, { label: variation.title, isFocused, withHoverView, children: ({ ratio, key }) => /* @__PURE__ */ jsx(__experimentalHStack, { spacing: 10 * ratio, justify: "center", style: { height: "100%", overflow: "hidden" }, children: /* @__PURE__ */ jsx(TypographyExample, { variation, fontSize: 85 * ratio }) }, key) }); }; export { StylesPreviewTypography as default }; //# sourceMappingURL=preview-typography.mjs.map