ebayui core react
v7.4.0
ebayui反应组件
演示
ebay-3d-viewer ebay-area-chart ebay-avatar ebay-bar-chart ebay-character-count ebay-chart-legend ebay-chip ebay-chips-combobox ebay-combobox ebay-details ebay-donut-chart ebay-education-notice ebay-fake-link ebay-filter ebay-filter-menu ebay-filter-menu-button ebay-flag ebay-image-placeholder ebay-line-chart ebay-listbox ebay-phone-input ebay-progress-bar-expressive ebay-skeleton ebay-spark-line ebay-tri-state-checkbox 这些反应组件可在NPM上以@ebay/ui-core-react软件包的形式提供。
使用NPM或纱线将包裹依赖性添加到您的项目中:
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>如果您动态地渲染孩子组件,并且不想获取React key警告,请提供key :
< EbayParentComponent >
{ items . map ( ( item , index ) => < EbayChildComponent key = { index } > { item } </ EbayChildComponent > ) }
</ EbayParentComponent >HTML属性可以在任何组件上使用,并且将传递到组件最突出的标签。最突出的标签通常是根或形式控制,但是单个组件会注意到它是否在特定情况下有所不同。
用法的示例:
< EbayButton id = "my-button" />在GitHub上创建一个问题
@ebay/ui-core-react
@ebay/ebayui-core-react (过时)
ebayui-core-react (过时)