npm i acre-components
按需引入,单独导入某一个组件即可使用。
import React from 'react';
import { Button } from 'acre-components';
export default function ButtonDemo1() {
return (
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
<Button type="primary">基础按钮</Button>
<Button type="success">成功按钮</Button>
<Button type="danger">危险按钮</Button>
<Button type="warning">警告按钮</Button>
<Button type="info">信息按钮</Button>
</div>
);
}
完整导入组件列表。
import { Button } from 'acre-components';