1.0.0 • Published 1 year ago

@ant-design/happy-work-theme v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@ant-design/happy-work-theme

Ant Design Happy Work Theme

NPM version npm download build status Test coverage bundle size dumi

Install

@ant-design/happy-work-theme

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.