File size: 760 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Search Box Header
This component is used to render the heading of the plugin marketplace, a search bar and a list of recommended searches.
## How to use
```jsx
import SearchBoxHeader from 'calypso/my-sites/plugins/search-box-header';
<SearchBoxHeader
searchTerm={ search }
siteSlug={ siteSlug }
title={ translate( 'Plugins you need to get your projects done' ) }
searchTerms={ [ 'shipping', 'seo', 'portfolio', 'chat', 'mailchimp' ] }
/>;
```
## Props
- `searchTerm`: The string used as a term to search the plugins.
- `siteSlug`: A string representing the url of the current selected site, it can be optional.
- `title`: A string that is rendered in the heading.
- `searchTerms`: An array of strings used to show recommended searches to the user.
|