Sha256: 49b95078aa827cf1fc1dd0d8c380aaf8c5569325d6df237471f335c1d6b1cfe8
Contents?: true
Size: 853 Bytes
Versions: 28
Compression:
Stored size: 853 Bytes
Contents
# frozen_string_literal: true module Playbook module PbTimeline class Timeline < Playbook::KitBase prop :orientation, type: Playbook::Props::Enum, values: %w[vertical horizontal], default: "horizontal" prop :show_date, type: Playbook::Props::Boolean, default: false prop :gap, type: Playbook::Props::Enum, values: %w[xs sm md lg none], default: "none" def classname generate_classname("pb_timeline_kit", orientation, date_class, gap_class) end private def date_class show_date ? "with_date" : nil end def gap_class gap == "none" ? nil : "gap_#{gap}" end end end end
Version data entries
28 entries across 28 versions & 1 rubygems