`Button` works fine with `Icon`, just set `icon` property or put `Icon` component in `Button`
`Button` components can contain an `Icon`. This is done by setting the `icon` property or placing an `Icon` component within the `Button`
If you want specific control over the positioning and placement of the `Icon`, then that should be done by placing the `Icon` component within the `Button` rather than using the `icon` property.
Thers are large button, default button and small button in antd.
Ant Design supports a default button size as well as a large and small size.
To get large/small button, just set `size` as `large`/`small`. If nothing is provided to `size`, we will get default button.
If a large or small button is desired, set the `size` property to either `large` or `small` respectively. Omit the `size` property for a button with the default size.
@ -24,7 +24,7 @@ size | can be set as `small` `large` or nothing | string | `default`
loading | to set the loading status of button | boolean | false
onClick | set the handler to handle `click` event | function | -
`<Button>Hello world!</Button>` will be rendered into `<button>Hello world!</button>`, and all the properties which are not listed above will be transfered to `<button />`.
`<Button>Hello world!</Button>` will be rendered into `<button>Hello world!</button>`, and all the properties which are not listed above will be transferred to the`<button>` tag.