Sha256: 8ce5edced42ed1a67ebc26e166966d1201308b49181f4ccd900ef7af1fae1066
Contents?: true
Size: 604 Bytes
Versions: 5
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module Primer class UnderlineNavComponent < Primer::Component ALIGN_DEFAULT = :left ALIGN_OPTIONS = [ALIGN_DEFAULT, :right] with_content_areas :body, :actions def initialize(align: ALIGN_DEFAULT, **system_arguments) @align = fetch_or_fallback(ALIGN_OPTIONS, align, ALIGN_DEFAULT) @system_arguments = system_arguments @system_arguments[:tag] = :nav @system_arguments[:classes] = class_names( @system_arguments[:classes], "UnderlineNav", "UnderlineNav--right" => @align == :right ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems