Skip to content

Commit

Permalink
docs: Do not use defaultProps
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmathieson authored Dec 13, 2024
1 parent e4a3441 commit fbf1a82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/pages/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Components should generally be crafted using the following standards. There may
- Primitive/Pattern components should always use `React.forwardRef` to provide direct access to the component's primary element
- All components should include a `displayName`
- All components should be functional (i.e. do not use class components)
- All components may not rely on `defaultProps` and should use default parameters instead
- All components should be named using [Pascal case](https://en.wiktionary.org/wiki/Pascal_case)
- All components should include typescript types for component props
- Polymorphic components should support using `as` property providing the capability for components to render as a different component under the hood
Expand All @@ -46,4 +47,4 @@ Additionally, components should be operable using the following screen readers:
- NVDA
- JAWS

Cauldron aims to provide accessible components by default with minimal configuration.
Cauldron aims to provide accessible components by default with minimal configuration.

0 comments on commit fbf1a82

Please sign in to comment.