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.24.3 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.24.2 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.24.1 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.24 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.23 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.22 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.21 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.20 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.19.1 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.19 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.18.3 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.18.2 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.18.1 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.18 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.17 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.16 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.15 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.14 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.13 lib/nfg_ui/components/traits/navbar.rb
nfg_ui-0.9.12 lib/nfg_ui/components/traits/navbar.rb