You can add salary components by navigating to Payroll >> Advance Settings >> Components.
You can create Base, recurring, variable, and AdHoc components by clicking on the respective tabs. You can define the created components by clicking on the component