Sha256: 59dd3472e7ca4f724402baa815fabe2f49c1024c27010fbf3d9157a8411d678f

Contents?: true

Size: 463 Bytes

Versions: 40

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

module NfgUi
  module Bootstrap
    module Components
      # Bootstrap Navbar Component
      # https://getbootstrap.com/docs/4.1/components/navbar/
      class NavbarBrand < NfgUi::Bootstrap::Components::Base
        def component_family
          :navbar
        end

        def href
          options.fetch(:href, '#')
        end

        private

        def base_element
          :a
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
nfg_ui-0.10.6 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.10.5 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.10.4.1 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.10.4 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.10.3 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.10.2 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.10.1 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.10 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.28 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.27 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.26 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.25.1 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.25 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.24.3 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.24.2 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.24.1 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.24 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.23 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.22 lib/nfg_ui/bootstrap/components/navbar_brand.rb
nfg_ui-0.9.21 lib/nfg_ui/bootstrap/components/navbar_brand.rb