Sha256: fd76df86a2c9e8fb818d2f4eee7df23e3a7ea45523f7d6b95d4dd9111d644401
Contents?: true
Size: 613 Bytes
Versions: 8
Compression:
Stored size: 613 Bytes
Contents
module GOVUKDesignSystemFormBuilder module Containers class Radios < GOVUKDesignSystemFormBuilder::Base def initialize(builder, inline:, small:) @builder = builder @inline = inline @small = small end def html @builder.content_tag('div', class: radios_classes, data: { module: 'govuk-radios' }) do yield end end private def radios_classes %w(govuk-radios).tap do |c| c.push('govuk-radios--inline') if @inline c.push('govuk-radios--small') if @small end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems