Sha256: 3c5866c17d65d7b77c4d6442f2be35d12317deac1d9dfdaacbdfbd87c930d093

Contents?: true

Size: 350 Bytes

Versions: 27

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

module NfgUi
  module Components
    module Traits
      # Access to pre-designed traits
      module Navbar
        TRAITS = %i[white].freeze

        def white_trait
          options[:light] = true
          # options[:class] += ' bg-white'
          options[:theme] = :white
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
nfg_ui-0.9.11 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.10 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.9 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.8.18 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.8.17 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.8.16 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.8.15 lib/nfg_ui/components/traits/navbar.rb