import { Card } from '@automattic/components'; import { Icon, starEmpty as iconStar, category as iconCategory } from '@wordpress/icons'; import { FunctionComponent } from 'react'; import { CategoryPillNavigation } from 'calypso/components/category-pill-navigation'; const categories = Array.from( { length: 15 }, ( _, i ) => ( { id: `category-${ i }`, label: `Category ${ i }`, link: '#', } ) ); const CategoryPillNavigationExample: FunctionComponent = () => { return (
, label: 'Discover', link: '/', }, { id: 'all', icon: , label: 'All categories', link: '/', }, ] } categories={ categories } />
); }; export default CategoryPillNavigationExample;