Download and enable this module, plus CiviCRM, Webform, and Options Element. Create a new webform (or go to edit an existing one). Click on the CiviCRM tab. Enable the fields you like, and optionally ...
Due to changes in the Drupal 10 Webform module, some advanced conditionals will no longer be supported. The conditional to look for is setting the value of a field based on the value of another field.