Skip to content

Commit

Permalink
Add dropdownMenuProps types
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor authored and aaronrobertshaw committed Dec 7, 2023
1 parent efa371c commit 50f211c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ This component is generated automatically by its parent

## Props

### `dropdownMenuProps`: `{}`

The popover props to configure panel's `DropdownMenu`.

- Type: `Object`
- Required: No
- Default: `{}`

### `headingLevel`: `1 | 2 | 3 | 4 | 5 | 6 | '1' | '2' | '3' | '4' | '5' | '6'`

The heading level of the panel's header.
Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/tools-panel/tools-panel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ wrapper element allowing the panel to lay them out accordingly.
- Required: No
- Default: `false`

### `dropdownMenuProps`: `{}`

The popover props to configure panel's `DropdownMenu`.

- Type: `Object`
- Required: No
- Default: `{}`

### `headingLevel`: `1 | 2 | 3 | 4 | 5 | 6 | '1' | '2' | '3' | '4' | '5' | '6'`

The heading level of the panel's header.
Expand Down
12 changes: 12 additions & 0 deletions packages/components/src/tools-panel/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ export type ToolsPanelProps = {
* The child elements.
*/
children: ReactNode;
/**
* The popover props to configure panel's DropdownMenu.
*
* @default {}
*/
dropdownMenuProps?: {};
/**
* Flags that the items in this ToolsPanel will be contained within an inner
* wrapper element allowing the panel to lay them out accordingly.
Expand Down Expand Up @@ -69,6 +75,12 @@ export type ToolsPanelProps = {
};

export type ToolsPanelHeaderProps = {
/**
* The popover props to configure panel's DropdownMenu.
*
* @default {}
*/
dropdownMenuProps?: {};
/**
* The heading level of the panel's header.
*
Expand Down

0 comments on commit 50f211c

Please sign in to comment.