ant-design/components/button/demo/debug-token.md
二货机器人 d437f9fad9
refactor: More token used on component (#34766)
* chore: add fontSizeIcon

* chore: cascader

* chore: slider token

* chore: slider token

* chore: move to outline

* chore: input style

* chore: input align

* chore: slider full

* chore: align inputNumber

* chore: input token

* chore: input-number token

* chore: mention token

* fix: ts def
2022-03-29 15:57:39 +08:00

740 B

order title debug
999
zh-CN en-US
覆盖组件样式 Override Component Style
true
import { Button, ConfigProvider, Space } from 'antd';

ReactDOM.render(
  <ConfigProvider
    theme={{
      override: {
        Button: {
          colorBgTextHover: 'red',
          colorBgTextActive: 'blue',
        },
      },
    }}
  >
    <Space>
      <Button type="text">Text 1</Button>

      <ConfigProvider
        theme={{
          override: {
            Button: {
              colorBgTextHover: 'orange',
              colorBgTextActive: 'blue',
            },
          },
        }}
      >
        <Button type="text">Text 2</Button>
      </ConfigProvider>
    </Space>
  </ConfigProvider>,
  mountNode,
);