In SAP UI5 architecture, you have three layers −
At the top, is the presentation layer, where UI5 components are consumed by devices like mobile, tablets, and laptops.
At the middle layer, is the application clients that includes SAP UI5 libraries for theming and control. UI5 control libraries include
Sap.viz
Sap.ui.commons (Controls like text fields and buttons)
Sap.ui.table (Input controls for table)
Sap.ui.ux3
Sap.m (Includes input control for mobile devices)
At the bottom, is the option server component. This includes SAP NetWeaver Application Server for ABAP/Java, SAP backend, HANA XS engine for development or database.