Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 427 Bytes

scoping.md

File metadata and controls

19 lines (12 loc) · 427 Bytes

Scoping

Fancy comes with a special ScopeProvider that allows you to define additional selectors to scope your fancy styled component CSS under.

Example

<ScopeProvider scope="html #App">
  <StyledCard />
</ScopeProvider>

If the hashed CSS classes for StyledCard was .css-213jdhx, they will now render as html #App .css-213jdhx.

See also