|
Download wp-calypso/client/my-sites/plugins/search-box-header/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/search-box-header/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/plugins/search-box-header/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/search-box-header/README.md
760 Bytes
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
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.