Primer React Style Guide
Use this skill when creating, modifying, or reviewing Primer React components, hooks, utilities, or component APIs.
Before authoring component code, read contributor-docs/style.md and apply the
guidelines that are relevant to the change. The style guide is the source of
truth for component API design and implementation conventions in this
repository.
When proposing, implementing, or reviewing a component change, explicitly apply the relevant style-guide principles to the design. If a change intentionally deviates from the style guide, call out the reason.
In addition, there are a set of topics below that may be used for guidance on a specific topic. Consult this to see if any apply to the task at hand.
| Topic | Description | Link |
|---|---|---|
| Component prop naming | Use when deciding or evaluating the name for a prop in a React component. | component-prop-naming |