Skip to content

Commit 029ec52

Browse files
Remove defaultProp references in docs
1 parent 5f56b96 commit 029ec52

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

docs/api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ ensuring the details live up to expectations.
6666
`${componentStyles}` which allows an implementer to leverage the
6767
[`theme`](https://zendeskgarden.github.io/react-components/theming/)
6868
"components" object to override specific component styles.
69-
- The view component `defaultProps` must contain `theme: DEFAULT_THEME` for
70-
cases when the component might be used outside the context of a
71-
`<ThemeProvider>`.
7269
- With the exception of embedded icons, view components do not return JSX.
7370

7471
## Element components

docs/documentation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ the standard rules for Garden element component documentation:
4141
API](https://garden.zendesk.com/components/select#dropdown) for an
4242
external linking example
4343
- Only add prop JSDoc to [TypeScript prop interfaces](typescript.md)
44-
- Refrain from documenting React `defaultProps`
4544
- Refrain from documenting styled components props
4645
- Use `@ignore` to prevent a prop from being added to generated documentation.
4746
Use this tag sparingly to hide internal-only APIs.

0 commit comments

Comments
 (0)