Key

PhlexIcons::Lucide

Source code

Icon ↓

With Phlex::Kit

Lucide::Key()

Without Phlex::Kit (e.g. ERB) ↓

render PhlexIcons::Lucide::Key.new

Plain Phlex ↓

def view_template
	svg(
		**attrs,
		xmlns: 'http://www.w3.org/2000/svg',
		viewbox: '0 0 24 24',
		fill: 'none',
		stroke: 'currentColor',
		stroke_width: '2',
		stroke_linecap: 'round',
		stroke_linejoin: 'round'
	) do |s|
		s.path(d: 'm15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4')
		s.path(d: 'm21 2-9.6 9.6')
		s.circle(cx: '7.5', cy: '15.5', r: '5.5')
	end
end

Plain SVG ↓

<svg xmlns="http://www.w3.org/2000/svg" class="" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
	<path d="m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4"></path>
	<path d="m21 2-9.6 9.6"></path>
	<circle cx="7.5" cy="15.5" r="5.5"></circle>
</svg>