ebayui core react
v7.4.0
ส่วนประกอบ Ebayui React
การสาธิต
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 ส่วนประกอบที่ตอบสนองเหล่านี้มีอยู่เป็น @ebay/ui-core-react Package บน NPM
ใช้ 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> หากคุณทำให้ส่วนประกอบของเด็ก ๆ แบบไดนามิกและไม่ต้องการรับการเตือน 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 (ล้าสมัย)