0.19.1 • Published 5 months ago

@measured/puck-plugin-emotion-cache v0.19.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

plugin-emotion-cache

Inject emotion cache into the Puck iframe.

Quick start

npm i @measured/puck-plugin-emotion-cache
import { Puck } from "@measured/puck";
import createEmotionCache from "@measured/puck-plugin-emotion-cache";

// Create your emotion cache plugin. This example configures it for Chakra.
const chakraEmotionCache = createEmotionCache("cha");

// Render Puck
export function Page() {
  return <Puck config={config} data={data} plugins={[chakraEmotionCache]} />;
}

Args

ParamExampleTypeStatus
keychaStringRequired

Required args

key

Key to pass to Emotion's createCache method.

License

MIT © The Puck Contributors

0.17.2

10 months ago

0.17.3

9 months ago

0.17.4

9 months ago

0.17.0

10 months ago

0.17.1

10 months ago

0.18.1

9 months ago

0.18.2

9 months ago

0.18.3

7 months ago

0.18.0

9 months ago

0.16.2

12 months ago

0.19.0

5 months ago

0.19.1

5 months ago

0.16.1

1 year ago

0.16.0

1 year ago

0.15.0

1 year ago