Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 637 Bytes

iframes.md

File metadata and controls

32 lines (24 loc) · 637 Bytes

iFrames

Fancy comes with a special FrameProvider enables any child Fancy styled component to render styles within the iFrame.

Example

<Frame>
  <FrameProvider>
    <StyledCard />
  </FrameProvider>
</Frame>

If you use the same component outside the iFrame, as long as the FrameProvider is present, the correct styles will generate.

<App>
  <StyledCard />
  <Frame>
    <FrameProvider>
      <StyledCard />
    </FrameProvider>
  </Frame>
</App>

See also