function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bob Lee 14Bob Lee 14 

What's the difference between Lightning:input & ui:input in lightning component?

I am littile bit confuse about <lightnign:input /> & <ui:input /> when to use which and what differences does it makes?
Best Answer chosen by Bob Lee 14
Ajay K DubediAjay K Dubedi
Hi Bob,

Greetings to you!

You can find base Lightning components in the lightning namespace to complement the existing UI namespace components. In instances where there are matching UI and lightning namespace components, we recommend that you use the lightning namespace component. The lightning namespace components are optimized for common use cases. Beyond being equipped with the Lightning Design System styling, they handle accessibility, real-time interaction, and enhanced error messages.

Please refer the below link for reference.
https://salesforce.stackexchange.com/questions/157526/difference-between-lightning-and-ui-tags
hope it will help.


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com
 

All Answers

Deepali KulshresthaDeepali Kulshrestha
Hi Bob,

Greetings to you!

You can find base Lightning components in the lightning namespace to complement the existing ui namespace components. 
In instances where there are matching ui and lightning namespace components, we recommend that you use the lightning namespace component. 
The lightning namespace components are optimized for common use cases. Beyond being equipped with the Lightning Design System styling, they handle accessibility,
real-time interaction, and enhanced error messages.

Please use below link.
https://salesforce.stackexchange.com/questions/157526/difference-between-lightning-and-ui-tags

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com
Ajay K DubediAjay K Dubedi
Hi Bob,

Greetings to you!

You can find base Lightning components in the lightning namespace to complement the existing UI namespace components. In instances where there are matching UI and lightning namespace components, we recommend that you use the lightning namespace component. The lightning namespace components are optimized for common use cases. Beyond being equipped with the Lightning Design System styling, they handle accessibility, real-time interaction, and enhanced error messages.

Please refer the below link for reference.
https://salesforce.stackexchange.com/questions/157526/difference-between-lightning-and-ui-tags
hope it will help.


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com
 
This was selected as the best answer