+ Input
+
+
+
Default
+ <%= render current_component.new(placeholder: "Placeholder") %>
+
+
+
+
Filled
+ <%= render current_component.new(value: "My value") %>
+
+
+
+
Error
+ <%= render current_component.new(value: "Bad value", error: "The value is wrong!") %>
+
+
+
+
Disabled
+ <%= render current_component.new(placeholder: "Placeholder", disabled: true) %>
+
+
+
+
Disabled filled
+ <%= render current_component.new(value: "My value", disabled: true) %>
+
+
diff --git a/admin/spec/components/solidus_admin/ui/forms/input/component_spec.rb b/admin/spec/components/solidus_admin/ui/forms/input/component_spec.rb
new file mode 100644
index 00000000000..0fac56f5d82
--- /dev/null
+++ b/admin/spec/components/solidus_admin/ui/forms/input/component_spec.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+require "spec_helper"
+
+RSpec.describe SolidusAdmin::UI::Forms::Input::Component, type: :component do
+ it "renders the overview preview" do
+ render_preview(:overview)
+ render_preview(:input_playground)
+ render_preview(:select_playground)
+ render_preview(:textarea_playground)
+ end
+end