Sha256: 46a65fba13ea8849dab51619c7272c65b9554fc84a2c8bead7959a1e8c6072b2

Contents?: true

Size: 723 Bytes

Versions: 2

Compression:

Stored size: 723 Bytes

Contents

# frozen_string_literal: true

module Yattho
  module Beta
    # @label Octicon
    class OcticonPreview < ViewComponent::Preview
      # @label Playground
      #
      # @param aria_label [String]
      # @param size [Symbol] select [xsmall, small, medium]
      def playground(size: :small, aria_label: nil)
        render(Yattho::Beta::Octicon.new(icon: :people, size: size, "aria-label": aria_label))
      end

      # @label Default Options
      #
      # @param aria_label [String]
      # @param size [Symbol] select [xsmall, small, medium]
      def default(size: :small, aria_label: nil)
        render(Yattho::Beta::Octicon.new(icon: :people, size: size, "aria-label": aria_label))
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 previews/yattho/beta/octicon_preview.rb
yattho_view_components-0.0.1 previews/yattho/beta/octicon_preview.rb