deca ui
v1.5.2

Decaui จัดเตรียมชุดของส่วนประกอบปฏิกิริยาที่เข้าถึงได้และปรับแต่งได้ซึ่งทำให้ง่ายต่อการสร้างต้นแบบอย่างรวดเร็วและพัฒนาเว็บไซต์ที่น่าทึ่ง
npm install @deca-ui/react
นี่คือตัวอย่างง่ายๆของแอพพื้นฐานโดยใช้ส่วนประกอบ Button ของ Decaui:
import { Button } from '@deca-ui/react' ;
function App ( ) {
return < Button variant = "solid" > Hello World </ Button > ;
} ด้วย Decaui นักพัฒนาสามารถใช้ระบบธีมส่วนกลางได้ทุกที่ภายในแอปพลิเคชันของพวกเขาด้วยชื่อชวเลขสำหรับคุณสมบัติ CSS
< Box
sx = { {
marginRight : '2rem' ,
marginLeft : '2rem' ,
marginTop : '2rem' ,
marginBottom : '2rem' ,
} }
>
< Input placeholder = "Email Address" />
< Input placeholder = "Password" />
< Button
sx = { {
width : '100%' ,
} }
>
Create Account
</ Button >
</ Box > < Box css = { { m : '$3' } } >
< Input placeholder = "Email Address" />
< Input placeholder = "Password" />
< Button maxWidth > Create Account </ Button >
</ Box > ปัญหาหลักของไลบรารี UI อื่น ๆ คือมันทำให้เกิดความสับสนในการสร้างเค้าโครงหน้าเว็บที่สอดคล้องกับพวกเขา Decaui อนุญาตให้นักพัฒนาใช้ประโยชน์จากวัตถุธีมรูทซึ่งให้บริการคุณสมบัติตามข้อกำหนด UI ของระบบ