Please review this training material.
Carefully select the folder/file to be shared. Share only the level needed, not the root of Documents / Desktop folder or other root folders. By default, folders inherit permissions from their parent folder. It's important to periodically review permissions of shared folders and edit accordingly.
See this Microsoft Support article for additional help.