Sha256: 9ed8bdf08d20ea1c3cb7d35d22ca53270c3e83c96144e5c730c89818fb02d369
Contents?: true
Size: 1.02 KB
Versions: 113
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module Primer module Beta # @label TimelineItem class TimelineItemPreview < ViewComponent::Preview # @label Playground # # @param condensed [Boolean] def playground(condensed: false) render(Primer::Beta::TimelineItem.new(condensed: condensed)) do |component| component.with_avatar(src: Primer::ExampleImage::BASE64_SRC, alt: "octocat") component.with_badge(bg: :success_emphasis, color: :on_emphasis, icon: :check) component.with_body { "Success!" } end end # @label Default # # @param condensed [Boolean] # @snapshot def default(condensed: false) render(Primer::Beta::TimelineItem.new(condensed: condensed)) do |component| component.with_avatar(src: Primer::ExampleImage::BASE64_SRC, alt: "octocat") component.with_badge(bg: :success_emphasis, color: :on_emphasis, icon: :check) component.with_body { "Success!" } end end end end end
Version data entries
113 entries across 113 versions & 2 rubygems