Sha256: b0f51c7d011121b1a82415b637171b3df913bb91a62748975a1724134f282284
Contents?: true
Size: 595 Bytes
Versions: 158
Compression:
Stored size: 595 Bytes
Contents
# frozen_string_literal: true require "primer/classify" module Primer module Forms # :nodoc: class Group < BaseComponent VERTICAL = :vertical HORIZONTAL = :horizontal DEFAULT_LAYOUT = VERTICAL LAYOUTS = [VERTICAL, HORIZONTAL].freeze def initialize(inputs:, builder:, form:, layout: DEFAULT_LAYOUT, **system_arguments) @inputs = inputs @builder = builder @form = form @layout = layout @system_arguments = system_arguments end def horizontal? @layout == HORIZONTAL end end end end
Version data entries
158 entries across 158 versions & 2 rubygems