Class: StepGroupComponent
- Defined in:
- app/components/step_group_component.rb
Overview
StepGroup — container for step indicators in multi-step workflows.
Usage:
StepGroup(ordered: true) {
Step(active: true, title: "Shipping", description: "Choose your shipping options")
Step(title: "Billing", description: "Enter billing information")
Step(disabled: true, title: "Confirm Order")
}
Constant Summary
Constants inherited from Component
Instance Method Summary collapse
Methods inherited from Component
default, #initialize, #render_in, slot
Constructor Details
This class inherits a constructor from Component
Instance Method Details
#to_s ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'app/components/step_group_component.rb', line 22 def to_s classes = class_names( "ui", size, attached && "#{attached} attached", { "ordered" => ordered, "vertical" => vertical, "fluid" => fluid, "unstackable" => unstackable, "stackable" => stackable, "circular" => circular }, "steps" ) tag.div(class: classes) { @content } end |