Sha256: 66b99e75c8eb93d8bb2a51dbfe5e98c32e8f7ac51c34a20762078624f1a8123c
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 Bytes
Contents
# frozen_string_literal: true # :nodoc: class SubmitButtonForm < ApplicationForm form do |my_form| my_form.fields_for(:name_form) do |builder| MultiTextFieldForm.new(builder) end my_form.text_field( name: :green, label: "I'm green", color: :success ) my_form.group(layout: :horizontal) do |button_group| button_group.submit(name: :submit, label: "Submit", scheme: :primary, mb: 3) do |component| component.with_leading_visual_icon(icon: :'check-circle') end button_group.button(name: :button, label: "Click me", mb: 3) do |component| component.with_leading_visual_icon(icon: :alert) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | app/forms/submit_button_form.rb |
yattho_view_components-0.0.1 | app/forms/submit_button_form.rb |