yarn add @ebay/ui-core-react @ebay/skin
import React from 'react'
import { EbaySegmentedButtons, EbaySegmentedButton as Button } from '@ebay/ui-core-react/ebay-segmented-buttons'
import { EbayIcon } from '@ebay/ui-core-react/ebay-icon'
import '@ebay/skin/segmented-buttons'
export const Example = () => (
<EbaySegmentedButtons
size="large"
onChange={(e, { i, value }) => console.log('Selected:', i, value)}
>
<Button value="1" selected>Button 1</Button>
<Button value="2">Button 2</Button>
<Button value="3"><EbayIcon name="settings24" /> Button 3</Button>
/>
);