NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.94k forks source link

Allow to show form control label within the control #6495

Open JohanHeyvaert opened 3 years ago

JohanHeyvaert commented 3 years ago

What problem does this feature solve?

Make a form more compact and more readable (100% clear which label belongs to which control).

I like how it's done in both Angular Material (https://material.angular.io/components/input/overview) and Taiga UI (https://taiga-ui.dev/form).

What does the proposed API look like?

Maybe the nzLayout attribute of nz-form could be extended with an extra possibility: floatingLabels?

Airblader commented 3 years ago

This sounds like a request against the design language itself, in which case you should probably file it against https://github.com/ant-design/ant-design first.