diff --git a/composer.json b/composer.json
index c2c2c05..7559f40 100644
--- a/composer.json
+++ b/composer.json
@@ -19,7 +19,8 @@
         "source": "https://git.drupalcode.org/project/css_toggle_switch"
     },
     "require": {
-        "drupal/core": "^9.3 || ^10"
+        "drupal/core": "^9.3 || ^10",
+        "drupal/webform": "^6.2"
     },
     "minimum-stability": "dev"
 }
diff --git a/css_toggle_switch.info.yml b/css_toggle_switch.info.yml
index 9104710..f24a4b2 100644
--- a/css_toggle_switch.info.yml
+++ b/css_toggle_switch.info.yml
@@ -3,6 +3,8 @@ description: Accessible, CSS-only, toggle switches form elements.
 package: Field
 core_version_requirement: ^9 || ^10
 type: module
+dependencies:
+  - drupal:webform
 
 # Information added by Drupal.org packaging script on 2023-12-12
 version: '1.0.0'
