Sha256: 8f7e9b9f1f209f24ef10c13e0b110007c4c60b0f1b4ce0de1990ddd17cd24517
Contents?: true
Size: 351 Bytes
Versions: 3
Compression:
Stored size: 351 Bytes
Contents
# frozen_string_literal: true module Phlex module Lucide # Base class for Lucide icons class Icon < Phlex::HTML attr_reader :size, :props def initialize(size: nil, **props) super() @size = size || Config.default_size || 24 @props = (Config.default_props || {}).merge(props) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phlex-lucide-0.428.0 | lib/phlex/lucide/icon.rb |
phlex-lucide-0.427.1 | lib/phlex/lucide/icon.rb |
phlex-lucide-0.427.0 | lib/phlex/lucide/icon.rb |