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 (過時)