<%= render_component_header title: "Slider", description: "An input where the user selects a value from within a given range." %> <% content_for :preview, flush: true do %> <%= render_slider name: "sample_slider", id: "sample_slider", value: 23 %> <% end %> <% content_for :code, flush: true do %> <% end %> <%= render_preview %>