deca ui
v1.5.2

DeCaui提供了一組可訪問且可自定義的React組件,使快速原型和開發令人驚嘆的網站變得易於使用。
npm install @deca-ui/react
這是使用DECAUI的Button組件的基本應用程序的簡單示例:
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規範之後提供屬性。