How to create an Ad Hoc component?
Navigate to Payroll >> Setup Payroll >> Create Salary Structure.
Click on the Create New Structure option that you can see in the bottom left of your screen. Choose REGULAR or CONTRACT as per your preference.