ant-design FloatButton should expose other button props

8e2ybdfx  于 30天前  发布在  其他
关注(0)|答案(6)|浏览(21)

What problem does this feature solve?

Ability to set other button props eg. disabled, loading, htmlType etc.

What does the proposed API look like?

Expose other props from Button type

0vvn1miw

0vvn1miw1#

It is not a Button actually.

ibps3vxo

ibps3vxo2#

It is a pity then because you cannot use many features like a loading indicator for a floating save button.

igetnqfo

igetnqfo3#

Can you list all properties you want here?

bogh5gae

bogh5gae4#

Currently, I am missing disabled, htmlType, and loading.
It would be also good to have direction='vertical' | 'horizontal' on FloatButton.Group like in other ant components.

nzk0hqpo

nzk0hqpo5#

Hi, Can you provide a specific scenario to explain why you need to change the htmlType ?

hjqgdpho

hjqgdpho6#

The floating button can submit a form defined elsewhere…

On Thu, 15 Aug 2024, 18:27 lijianan, ***@***.***> wrote: Hi, Can you provide a specific scenario to explain why you need to change the htmlType ? — Reply to this email directly, view it on GitHub <#48234 (comment)>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAMGGQPZY5CHJQK3BPV2NOLZRTJGJAVCNFSM6AAAAABFTJTF3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJRGY3DMNBQGA > . You are receiving this because you authored the thread.Message ID: ***@***.***>

相关问题