Skip to content

Commit

Permalink
Update link control docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Oct 26, 2021
1 parent a3b0049 commit 741882a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/block-editor/src/components/link-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ A `suggestion` should have the following shape:
)}
/>
```
### renderControlBottom
- Type: `Function`
- Required: No
- Default: null
A render prop that can be used to pass optional controls to be rendered at the bottom of the component.
# LinkControlSearchInput
Expand Down
1 change: 1 addition & 0 deletions packages/block-editor/src/components/link-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ import { DEFAULT_LINK_SETTINGS } from './constants';
* @property {Object=} suggestionsQuery Query parameters to pass along to wp.blockEditor.__experimentalFetchLinkSuggestions.
* @property {boolean=} noURLSuggestion Whether to add a fallback suggestion which treats the search query as a URL.
* @property {string|Function|undefined} createSuggestionButtonText The text to use in the button that calls createSuggestion.
* @property {Function} renderControlBottom Optional controls to be rendered at the bottom of the component.
*/

/**
Expand Down

0 comments on commit 741882a

Please sign in to comment.