|
Download wp-calypso/client/blocks/all-sites/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 796 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/all-sites/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/all-sites/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/all-sites/README.md
796 Bytes
| # All Sites (JSX) | |
| This component displays the All Sites item. It's used in the Sidebar as the current site selection and in the picker. | |
| ## How to use | |
| ```js | |
| import AllSites from 'calypso/blocks/all-sites'; | |
| function render() { | |
| return <AllSites />; | |
| } | |
| ``` | |
| ## Props | |
| - `onSelect (func)` - A function to handle the event callback when clicking/tapping on the site. | |
| - `href (string)` - A URL to add to the anchor. | |
| - `isSelected (bool)` - Whether the site should be marked as selected. | |
| - `showCount (bool)` - Whether to render a `<Count>` element. | |
| - `count (number)` - A value to be rendered as the count. | |
| - `title (string)` - To set a different title for the component. Default is "All My Sites". | |
| - `domain (string)` - If this is set it renders a the string as the domain before the row of icons. | |