Sha256: b20befa9900215a50381f5f5724aa0ccaaa72a6ceb21d8fd5f3cedc2d59503fe
Contents?: true
Size: 448 Bytes
Versions: 14
Compression:
Stored size: 448 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, default: "#" prop :text def classname generate_classname("pb_nav_list_border_item", active_class) end private def active_class active ? "active" : nil end end end end
Version data entries
14 entries across 14 versions & 1 rubygems