Sha256: af0c5f2fb0f55dff6baf953e45893c1c23d1f2140c0aa38506ad6c8666331502
Contents?: true
Size: 372 Bytes
Versions: 2
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true class FoxTail::RadioButtonComponent < FoxTail::BaseComponent has_option :color, default: :default has_option :size, default: :base def before_render super html_attributes[:type] = :radio html_attributes[:class] = classnames theme.apply(:root, self), html_class end def call tag :input, html_attributes end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fox_tail-0.1.1 | app/components/fox_tail/radio_button_component.rb |
fox_tail-0.1.0 | app/components/fox_tail/radio_button_component.rb |