Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(IconProvider): support global configuration classPrefix and csp #12

Merged
merged 13 commits into from
Oct 16, 2024

Conversation

simonguo
Copy link
Member

@simonguo simonguo commented Oct 15, 2024

https://rsuite-icons-ibtf2wf3a-rsuite.vercel.app

import { IconProvider, Gear } from '@rsuite/icons';

return (
  <IconProvider
    value={{
      classPrefix: 'my-',
      csp: {
        // https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce
        nonce: '123456'
      }
    }}
  >
    <Gear />
  </IconProvider>
);

fix: rsuite/rsuite#3997

Copy link

codesandbox-ci bot commented Oct 15, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

vercel bot commented Oct 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rsuite-icons ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 16, 2024 3:01am

@simonguo simonguo merged commit 6a31554 into master Oct 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant