Skip to content

eBay/ebayui-core-react

Repository files navigation

ebayui-core-react

eBayUI React components

Demo

Requirements

eBayUI Components

Getting Started

These react components are available as @ebay/ui-core-react package on NPM.

Use npm or yarn to add the package dependency to your project:

yarn add @ebay/ui-core-react @ebay/skin
import { EbayTextbox } from '@ebay/ui-core-react/ebay-textbox'
import { EbayButton } from '@ebay/ui-core-react/ebay-button'

<EbayTextbox placeholder="Enter text here" />
<EbayButton>Submit</EbayButton>

Notes

If you render children components dynamically and don't want to get React key warnings then provide a key:

<EbayParentComponent>
    {items.map((item, index) => <EbayChildComponent key={index}>{item}</EbayChildComponent>)}
</EbayParentComponent>

Pass-Through Attributes

HTML attributes can be used on any component, and they will be passed through to the most prominent tag of the component. The most prominent tag is usually the root or form control, but individual components will note if it varies for specific cases.

Example of usage:

<EbayButton id="my-button" />

Issues

Create an issue on github

Changelog

@ebay/ui-core-react

version 7.x (Skin 18, breaking changes in icon names)

version 6.x (Skin 17, breaking changes in icon names)

version 5.x (Skin 16, breaking changes in event callbacks)

version 4.x (Skin 16, breaking changes in icon names)

version 3.x (Skin 15, some breaking changes in dialog components)

version 2.x (Skin 15)

@ebay/ebayui-core-react (obsolete)

version 10.x (Skin 14)

version 9.x (skin 13)

ebayui-core-react (obsolete)

version 8.x (skin 12)

version 6.x (skin 10)

version 5.x (removed less, changed imports to minimize bundle size)

version 3.x (skin 9, react 16.8 with hooks support)

version 2.x (skin 7, react 16.7)

legacy