Skip to content

Commit

Permalink
Components: Document missing menuLabel, position, className Dropdown …
Browse files Browse the repository at this point in the history
…props
  • Loading branch information
aduth committed Apr 5, 2019
1 parent 1dcda6f commit 7a54cec
Showing 1 changed file with 22 additions and 0 deletions.
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

0 comments on commit 7a54cec

Please sign in to comment.