apps/www/content/docs/get-started/contributing.mdx
Thanks for showing interest to contribute to Chakra UI 💖, you rock!
Here are a few ways you can help improve Chakra UI
apps/compositions/src/examples:::info
We welcome all contributions, no matter how big or small.
:::
Chakra v3.x is a composition of two projects in the Chakra ecosystem, Ark UI and Zag.js. The goal is to maintain as little code as possible in Chakra UI, and delegate the heavy lifting to these projects.
:::card-group
<ResourceCard type="github" title="Zag.js" description="Component logic modelled as a state machine" url="https://github.com/chakra-ui/zag" />
<ResourceCard type="github" title="Ark UI" description="State machine from Zag.js converted to headless UI components" url="https://github.com/chakra-ui/ark" />
:::
Reporting vulnerabilities: Do not report in public issues. Report privately via GitHub Security Advisories. Include the type of issue, affected package and version, steps to reproduce, and impact.
See SECURITY.md for the full policy.
Supported versions: We release security updates for the latest major version.
Security posture:
dangerouslySetInnerHTML internally—everything renders through
React's JSX. If you pass raw HTML (e.g. Prose or CodeBlock with user
content), sanitize it first.<style> tags. With strict CSP, add
style-src 'unsafe-inline' or use a nonce (Emotion supports it).localStorage, sessionStorage, or cookies.The mindset for filing issues on Chakra v3.x works like this:
If the issue is a logic or accessibility bug, then it's most likely a bug in Zag.js. Consider opening an issue in the Zag.js repository.
If it's a styling issue, then you can fix it directly in the Chakra UI repo.
The mindset for filing feature requests on Chakra v3.x works like this:
If the feature is a new component without logic, then it can go in Chakra UI or Ark UI. Start a discussion on the Chakra UI repository
If the feature is a new component with logic, it belongs in Zag.js. Start a discussion on the Zag.js repository.
git clone https://github.com/chakra-ui/chakra-ui.git
pnpm install
pnpm build:fast
pnpm storybook
pnpm www dev
pnpm test
We recommend using the following extensions in your editor: