Sha256: a6b16aef9d22e294cf796630064528931e536bb29b89a0a8c32877a78bc73958

Contents?: true

Size: 299 Bytes

Versions: 69

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true

class Avo::Fields::Common::BooleanCheckComponent < ViewComponent::Base
  def initialize(checked: false)
    @icon = checked ? "heroicons/outline/check-circle" : "heroicons/outline/x-circle"
    @classes = "h-6 #{checked ? "text-green-600" : "text-red-500"}"
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
avo-3.0.1.beta19 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.1.beta24 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.1.beta15 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.1.beta16 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.1.beta14 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.1.beta12 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.1.beta13 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.1.beta10 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.1.beta11 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.0.pre19 app/components/avo/fields/common/boolean_check_component.rb
avo-3.0.1.beta9 app/components/avo/fields/common/boolean_check_component.rb
avo-3.2.2 app/components/avo/fields/common/boolean_check_component.rb
avo-3.2.1 app/components/avo/fields/common/boolean_check_component.rb
avo-3.2.0 app/components/avo/fields/common/boolean_check_component.rb
avo-3.1.7 app/components/avo/fields/common/boolean_check_component.rb
avo-3.1.6 app/components/avo/fields/common/boolean_check_component.rb
avo-3.1.5 app/components/avo/fields/common/boolean_check_component.rb
avo-3.1.4 app/components/avo/fields/common/boolean_check_component.rb
avo-3.1.3 app/components/avo/fields/common/boolean_check_component.rb
avo-3.1.2 app/components/avo/fields/common/boolean_check_component.rb