Sha256: 2844aa2d9b871004d9260b27e9062e16432413b521b974db5e466fe16ab7d1df
Contents?: true
Size: 784 Bytes
Versions: 52
Compression:
Stored size: 784 Bytes
Contents
# frozen_string_literal: true module Playbook module PbSectionSeparator class SectionSeparator include Playbook::Props partial "pb_section_separator/section_separator" prop :text prop :variant, type: Playbook::Props::Enum, values: %w[card background], default: "card" prop :orientation, type: Playbook::Props::Enum, values: %w[horizontal vertical], default: "horizontal" prop :dark, type: Playbook::Props::Boolean, default: false def classname generate_classname("pb_section_separator_kit", variant, orientation) end private def dark_class dark ? "dark" : nil end end end end
Version data entries
52 entries across 52 versions & 1 rubygems