You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -253,7 +253,7 @@ Click on **Details** to find out more about them.
253
253
### Updating the component API documentation
254
254
255
255
The component API in the component `propTypes` and under `docs/pages/api-docs` is auto-generated from the [JSDoc](https://jsdoc.app/about-getting-started.html) in the TypeScript declarations.
256
-
Be sure to update the documentation in the corresponding `.d.ts` files (e.g.`packages/mui-material/src/Button/Button.d.ts` for `<Button>`) and then run:
256
+
Be sure to update the documentation in the corresponding `.d.ts` files (for example`packages/mui-material/src/Button/Button.d.ts` for `<Button>`) and then run:
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,15 +117,15 @@ You can find complete templates and themes in the [MUI Store](https://mui.com/s
117
117
Read the [contributing guide](/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.
118
118
119
119
Contributing is about more than just issues and pull requests!
120
-
There are many other ways to [support MUI](https://mui.com/material-ui/getting-started/faq/#mui-is-awesome-how-can-i-support-the-project) beyond contributing to the code base.
120
+
There are many other ways to [support Material UI](https://mui.com/material-ui/getting-started/faq/#mui-is-awesome-how-can-i-support-the-project) beyond contributing to the code base.
121
121
122
122
## Changelog
123
123
124
124
The [changelog](https://github.com/mui/material-ui/releases) is regularly updated to reflect what's changed in each new release.
125
125
126
126
## Roadmap
127
127
128
-
Future plans and high-priority features and enhancements can be found in our[roadmap](https://mui.com/material-ui/discover-more/roadmap/).
128
+
Future plans and high-priority features and enhancements can be found in the[roadmap](https://mui.com/material-ui/discover-more/roadmap/).
Copy file name to clipboardExpand all lines: TYPESCRIPT_CONVENTION.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
### `Props Interface`
10
10
11
-
- export interface `{ComponentName}classes` from `{component}Classes.ts` and add comment for generating api docs (for internal components, may or may not expose classes but don't need comment)
11
+
- export interface `{ComponentName}classes` from `{component}Classes.ts` and add comment for generating API docs (for internal components, may or may not expose classes but don't need comment)
12
12
- export interface `{ComponentName}Props`
13
13
- always export props interface (use `interface` over `type`) from the component file
Copy file name to clipboardExpand all lines: docs/data/base/components/focus-trap/focus-trap.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ The following demo uses the [Portal](/base-ui/react-portal/) component to render
78
78
79
79
### Using a toggle inside the trap
80
80
81
-
The most common use-case for the Focus Trap component is to maintain focus within a [Modal](/base-ui/react-modal/) component that is entirely separate from the element that opens the modal.
81
+
The most common usecase for the Focus Trap component is to maintain focus within a [Modal](/base-ui/react-modal/) component that is entirely separate from the element that opens the modal.
82
82
But you can also create a toggle button for the `open` prop of the Focus Trap component that is stored inside of the component itself, as shown in the following demo:
Note that even though Form Control supports both controlled and uncontrolled-style APIs (i.e. it accepts `value` and `defaultValue` props), `useFormControlContext` returns only the controlled `value`.
85
+
Note that even though Form Control supports both controlled and uncontrolled-style APIs (that is it accepts `value` and `defaultValue` props), `useFormControlContext` returns only the controlled `value`.
86
86
This way, you don't have to implement both in your custom input—Form Control does this for you.
0 commit comments