• Chun Ming Kong
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
From the developer guide, force, ui and lightning namespaces are referring to:
force
Provides components for field- and record-specific implementations.

lightning
Provides components with Lightning Design System styling. For components in this namespace that are used in standalone Lightning apps, extend force:slds to implement Lightning Design System styling. 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. Event handling for lightning namespace components follows standard HTML practices and are simpler than that for the ui namespace components. For more information, see Event Handling in Base Lightning Components.

ui
Provides an older implementation of user interface components that don’t match the look and feel of Lightning Experience and the Salesforce mobile app. Components in this namespace support multiple styling mechanism, and are usually more complex.

(https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref.htm)

I understand that lightning namespace is preferred when compared to ui namespace. But I am confused of the difference between force and lightning namespaces. For example, we can use force:inputField and lightning:input to show an input box.

Please suggest the possible use cases for these three namespaces.