Sha256: 0669760a48a81e5e5219f7148344b214ac3cb74da5596034df796274aeb07c7f

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

# frozen_string_literal: true

module Icon
  class Preview < ViewComponent::Preview
    # @param emphasis select {{ ::Icon::Component::EMPHASES }}
    # @param filled toggle
    # @param name
    # @param size select {{ ::Icon::Component::SIZES }}
    # @param title
    # @param weight select {{ ::Icon::Component::WEIGHTS }}
    def default( # rubocop:disable Metrics/ParameterLists
      emphasis: 'normal',
      filled: false,
      name: 'settings',
      size: 'normal',
      title: nil,
      weight: 'normal'
    )
      render(
        Icon::Component.new(
          emphasis:,
          filled:,
          name:,
          size:,
          title:,
          weight:
        )
      )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
optics_view_components-0.1.1 app/components/optics/icon/preview.rb