Skip to content

Commit

Permalink
fix: Updates drawer comments so it shows on API tab (#1855)
Browse files Browse the repository at this point in the history
Co-authored-by: Katie George <[email protected]>
  • Loading branch information
katiegeorge and Katie George authored Jan 4, 2024
1 parent 1a41997 commit 8f2834b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/__tests__/__snapshots__/documenter.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,16 @@ Each Drawer is an item in the drawers wrapper with the following properties:
* resizable (boolean) - if the drawer is resizable or not.
* defaultSize (number) - starting size of the drawer. if not set, defaults to 290.
* onResize (({ size: number }) => void) - Fired when the active drawer is resized.

#### DrawerTrigger
- \`iconName\` (IconProps.Name) - (Optional) Specifies the icon to be displayed.
- \`iconSvg\` (React.ReactNode) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)

#### DrawerAriaLabels
- \`drawerName\` (string) - Label for the drawer itself.
- \`closeButton\` (string) - (Optional) Label for the close button.
- \`triggerButton\` (string) - (Optional) Label for the trigger button.
- \`resizeHandle\` (string) - (Optional) Label for the resize handle.
",
"name": "drawers",
"optional": true,
Expand Down
10 changes: 10 additions & 0 deletions src/app-layout/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ export interface AppLayoutProps extends BaseComponentProps {
* * resizable (boolean) - if the drawer is resizable or not.
* * defaultSize (number) - starting size of the drawer. if not set, defaults to 290.
* * onResize (({ size: number }) => void) - Fired when the active drawer is resized.
*
* #### DrawerTrigger
* - `iconName` (IconProps.Name) - (Optional) Specifies the icon to be displayed.
* - `iconSvg` (React.ReactNode) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)
*
* #### DrawerAriaLabels
* - `drawerName` (string) - Label for the drawer itself.
* - `closeButton` (string) - (Optional) Label for the close button.
* - `triggerButton` (string) - (Optional) Label for the trigger button.
* - `resizeHandle` (string) - (Optional) Label for the resize handle.
*/
drawers?: Array<AppLayoutProps.Drawer>;

Expand Down

0 comments on commit 8f2834b

Please sign in to comment.