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.9.2 app/components/avo/fields/common/boolean_check_component.rb
avo-3.9.1 app/components/avo/fields/common/boolean_check_component.rb
avo-3.8.2 app/components/avo/fields/common/boolean_check_component.rb
avo-3.9.0 app/components/avo/fields/common/boolean_check_component.rb
avo-3.8.1 app/components/avo/fields/common/boolean_check_component.rb
avo-3.8.0 app/components/avo/fields/common/boolean_check_component.rb
avo-3.6.4 app/components/avo/fields/common/boolean_check_component.rb
avo-3.6.3 app/components/avo/fields/common/boolean_check_component.rb
avo-3.6.2 app/components/avo/fields/common/boolean_check_component.rb
avo-3.6.1 app/components/avo/fields/common/boolean_check_component.rb
avo-3.6.0 app/components/avo/fields/common/boolean_check_component.rb
avo-3.5.8 app/components/avo/fields/common/boolean_check_component.rb
avo-3.5.7 app/components/avo/fields/common/boolean_check_component.rb
avo-3.5.6 app/components/avo/fields/common/boolean_check_component.rb
avo-3.5.6.beta1 app/components/avo/fields/common/boolean_check_component.rb
avo-3.5.5 app/components/avo/fields/common/boolean_check_component.rb
avo-3.5.4 app/components/avo/fields/common/boolean_check_component.rb
avo-3.5.3 app/components/avo/fields/common/boolean_check_component.rb
avo-3.5.2 app/components/avo/fields/common/boolean_check_component.rb
avo-3.5.1 app/components/avo/fields/common/boolean_check_component.rb