Class: Phlex::Lucide::HeartOffIcon

Inherits:
Icon
  • Object
show all
Defined in:
lib/phlex/lucide/icons/heart_off_icon.rb

Instance Attribute Summary

Attributes inherited from Icon

#props, #size

Instance Method Summary collapse

Methods inherited from Icon

#initialize

Constructor Details

This class inherits a constructor from Phlex::Lucide::Icon

Instance Method Details

#view_templateObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/phlex/lucide/icons/heart_off_icon.rb', line 6

def view_template
  svg(
    xmlns: "http://www.w3.org/2000/svg",
    width: size,
    height: size,
    viewbox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    stroke_width: "2",
    stroke_linecap: "round",
    stroke_linejoin: "round",
    **props
  ) do |s|
    s.line(x1: "2", y1: "2", x2: "22", y2: "22")
    s.path(
      d: "M16.5 16.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5a5.5 5.5 0 0 1 2.14-4.35"
    )
    s.path(
      d:
        "M8.76 3.1c1.15.22 2.13.78 3.24 1.9 1.5-1.5 2.74-2 4.5-2A5.5 5.5 0 0 1 22 8.5c0 2.12-1.3 3.78-2.67 5.17"
    )
  end
end