Skip to content

Commit d5f2375

Browse files
authored
docs(Toolbar): improve children description (#4819)
Closes #4806
1 parent bebb6bb commit d5f2375

File tree

1 file changed

+3
-1
lines changed
  • packages/main/src/components/Toolbar

1 file changed

+3
-1
lines changed

packages/main/src/components/Toolbar/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export interface ToolbarPropTypes extends Omit<CommonProps, 'onClick' | 'childre
3636
/**
3737
* Defines the content of the `Toolbar`.
3838
*
39-
* __Note:__ Although this prop accepts all `ReactNode` types, it is strongly recommended to not pass `string` or `number` to it.
39+
* __Note:__ Although this prop accepts all `ReactNode` types, it is strongly recommended to not pass `string`, `number` or a React Portal to it.
40+
*
41+
* __Note:__ Only components displayed inside the Toolbar are supported as children, i.e. elements positioned outside the normal flow of the document (like dialogs or popovers), can cause undesired behavior.
4042
*/
4143
children?: ReactNode | ReactNode[];
4244
/**

0 commit comments

Comments
 (0)