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规范之后提供属性。