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: TYPESCRIPT_CONVENTION.md
+5-6
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,13 @@
4
4
5
5
> **Public components** are considered all components exported from `@mui/material` or `@mui/lab`.
6
6
>
7
-
> **Internal components** are considered all components that are not exported from the packages, but only used in some public component. There is no need to have `sx` prop on these components
7
+
> **Internal components** are considered all components that are not exported from the packages, but only used in some public component.
8
8
9
9
### `Props Interface`
10
10
11
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
0 commit comments