Sha256: b734b1cb56edd4b76dc2623b86365edf8ccc92cd0aa137a0614fdec0449dfc61

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

module Yattho
  module Beta
    # @label Spinner
    class SpinnerPreview < ViewComponent::Preview
      # @label Playground
      #
      # @param size [Symbol] select [small, medium, large]
      def playground(size: :medium)
        render(Yattho::Beta::Spinner.new(size: size))
      end

      # @label Default Options
      #
      # @param size [Symbol] select [small, medium, large]
      def default(size: :medium)
        render(Yattho::Beta::Spinner.new(size: size))
      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/spinner_preview.rb
yattho_view_components-0.0.1 previews/yattho/beta/spinner_preview.rb