Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Components: Document missing menuLabel, position, className Dropdown …
…props
  • Loading branch information
aduth authored and gziolo committed May 30, 2019
commit 9dc5a8609f7d5483a9a399c1900d860f99299357
22 changes: 22 additions & 0 deletions packages/components/src/dropdown-menu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,21 @@ A human-readable label to present as accessibility text on the focused collapsed
- Type: `String`
- Required: Yes

#### menuLabel

A human-readable label to present as accessibility text on the expanded menu container.

- Type: `String`
- Required: No

#### position

The direction in which the menu should open. Specify y- and x-axis as a space-separated string. Supports `"top"`, `"middle"`, `"bottom"` y axis, and `"left"`, `"center"`, `"right"` x axis.

- Type: `String`
- Required: No
- Default: `"top center"`

#### controls

An array of objects describing the options to be shown in the expanded menu.
Expand All @@ -122,3 +137,10 @@ Each object should include an `icon` [Dashicon](https://developer.wordpress.org/
- Required: Yes

See also: [https://developer.wordpress.org/resource/dashicons/](https://developer.wordpress.org/resource/dashicons/)

#### className

A class name to apply to the dropdown wrapper element.

- Type: `String`
- Required: No