Sha256: 22d96c655b19f0203ba3b622f7bc42f0e48d9757965a10cd985e5371cd7ad9ec
Contents?: true
Size: 542 Bytes
Versions: 7
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true module Primer module Beta # @label Avatar class AvatarPreview < ViewComponent::Preview # @label Default options # # @param size [Integer] select [16, 20, 24, 32, 40, 48, 80] # @param shape [Symbol] select [circle, square] # @param href [String] text def default(size: 24, shape: :circle, href: nil) render(Primer::Beta::Avatar.new(src: Primer::ExampleImage::BASE64_SRC, alt: "@kittenuser", size: size, shape: shape, href: href)) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems