Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Feb 6, 2025
1 parent f1f7562 commit 6136688
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/pages/material-ui/api/drawer.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"slots": [
{
"name": "root",
"description": "The component used for the Modal root.",
"description": "The component used for the root when the variant is `temporary`.",
"default": "Modal",
"class": "MuiDrawer-root"
},
Expand All @@ -87,7 +87,7 @@
},
{
"name": "docked",
"description": "The component used for the docked.\nIt's also a root slot when variant is `permanent` or `persistent`.",
"description": "The component used for the root element when the variant is `permanent` or `persistent`.",
"default": "div",
"class": "MuiDrawer-docked"
},
Expand Down
4 changes: 2 additions & 2 deletions docs/translations/api-docs/drawer/drawer.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@
},
"slotDescriptions": {
"backdrop": "The component used for the Modal backdrop.",
"docked": "The component used for the docked. It&#39;s also a root slot when variant is <code>permanent</code> or <code>persistent</code>.",
"docked": "The component used for the root element when the variant is <code>permanent</code> or <code>persistent</code>.",
"paper": "The component used for the paper.",
"root": "The component used for the Modal root.",
"root": "The component used for the root when the variant is <code>temporary</code>.",
"transition": "The component used for the transition. <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Follow this guide</a> to learn more about the requirements for this component."
}
}
5 changes: 2 additions & 3 deletions packages/mui-material/src/Drawer/Drawer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface DrawerBackdropSlotPropsOverrides {}

export interface DrawerSlots {
/**
* The component used for the Modal root.
* The component used for the root when the variant is `temporary`.
* @default Modal
*/
root: React.ElementType;
Expand All @@ -31,8 +31,7 @@ export interface DrawerSlots {
*/
backdrop: React.ElementType;
/**
* The component used for the docked.
* It's also a root slot when variant is `permanent` or `persistent`.
* The component used for the root element when the variant is `permanent` or `persistent`.
* @default div
*/
docked: React.ElementType;
Expand Down

0 comments on commit 6136688

Please # to comment.