1.0.0 • Published 1 year ago
@ant-design/happy-work-theme v1.0.0
@ant-design/happy-work-theme
Ant Design Happy Work Theme
Install
Usage
Use HappyProvider to wrap your app.
import { HappyProvider } from '@ant-design/happy-work-theme';
import { Button, Space, Switch } from 'antd';
import React from 'react';
const desc = 'Happy Work';
const App: React.FC = () => (
<HappyProvider>
<Space>
<Button type="primary">{desc}</Button>
<Switch checkedChildren={desc} unCheckedChildren={desc} />
</Space>
</HappyProvider>
);
export default App;
API
HappyProvider
Wrapper component will pass config with antd ConfigProvider.
Development
npm install
npm start
Test Case
npm test
npm run coverage
open coverage/ dir
License
@ant-design/happy-work-theme is released under the MIT license.
1.0.0
1 year ago