Sha256: 06497d3317c2ee8f2710cc6fdf4d9644b27d4b67e95b23887df6bce479eb0353
Contents?: true
Size: 699 Bytes
Versions: 21
Compression:
Stored size: 699 Bytes
Contents
module GOVUKDesignSystemFormBuilder module Containers class CheckBoxes < Base include Traits::HTMLClasses include Traits::HTMLAttributes def initialize(builder, small:, **kwargs) super(builder, nil, nil) @small = small @html_attributes = kwargs end def html(&block) tag.div(**attributes(@html_attributes), &block) end private def options { class: classes, data: { module: %(#{brand}-checkboxes) } } end def classes build_classes( %(#{brand}-checkboxes), %(#{brand}-checkboxes--small) => @small, ) end end end end
Version data entries
21 entries across 21 versions & 2 rubygems