Sha256: 0335806c316ae9dea1539f24ae50dd079cbafa4afcbe28744fb104aacb169909
Contents?: true
Size: 737 Bytes
Versions: 40
Compression:
Stored size: 737 Bytes
Contents
# frozen_string_literal: true module Playbook module PbNav class Item include Playbook::Props partial "pb_nav/item" prop :active, type: Playbook::Props::Boolean, default: false prop :link prop :text prop :icon_left prop :icon_right prop :image_url def classname generate_classname("pb_nav_list_kit_item", active_class) end def tag link ? "a" : "div" end def options { class: "pb_nav_list_item_link", }.compact end def link_options options.merge( href: link ) end private def active_class active ? "active" : nil end end end end
Version data entries
40 entries across 40 versions & 1 rubygems