Select the project you want to work on from the Apps screen.
Go to the UI Design module.
Select the component you want to add the action to (e.g., a button).
Open the Properties panel on the right side.
From the ADD ACTION menu, select the Local Storage → Write To Local Storage action according to the trigger event you want (Initial Actions, OnClick, OnBlur, etc.).