Sha256: 2cef80878815f4bc910c1165d4e4e6a2c3b250f7fb0b6b6bfa92d1a76a49e38e
Contents?: true
Size: 796 Bytes
Versions: 114
Compression:
Stored size: 796 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, dark_class) end private def dark_class dark ? "dark" : nil end end end end
Version data entries
114 entries across 114 versions & 1 rubygems