Sha256: 36909a2268c43866c65367367667cb9d6365e6b83be223f433a1a28cbb29f1d3
Contents?: true
Size: 1.06 KB
Versions: 37
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true module Playbook module PbSectionSeparator class SectionSeparator < Playbook::KitBase prop :color, type: Playbook::Props::Enum, values: %w[default primary], default: "default" 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 prop :line_style, type: Playbook::Props::Enum, values: %w[dashed solid], default: "solid" def classname generate_classname("pb_section_separator_kit", variant, orientation, line_style == "dashed" ? "dashed" : nil, color != "default" ? "color_#{color}" : nil) end private def dark_class dark ? "dark" : nil end end end end
Version data entries
37 entries across 37 versions & 1 rubygems