扫一扫分享
用于快速且可访问的华丽界面开发的组件库,成为最易于使用的开箱即用和最快的生产方式。
Inside tailwind.config.js
const windmill = require('@windmill/react-ui/config')
module.exports = windmill({
purge: [],
theme: {
extend: {},
},
variants: {},
plugins: [],
})
Then place Windmill at the root of your project (the order doesn't matter, as long as your application is inside).
// index.js
import React from 'react'
import Reactdom from 'react-dom'
import App from './App'
import { Windmill } from '@windmill/react-ui'
ReactDOM.render(
<Windmill>
<App />
</Windmill>,
document.getElementById('root')
)
Use components inside your project
import { Button } from '@windmill/react-ui'
function App() {
return <Button>Hi there!</Button>
}
export default App
手机预览