AlignCenterHorizontal

PhlexIcons::Lucide

Source code

Icon ↓

With Phlex::Kit

Lucide::AlignCenterHorizontal()

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

render PhlexIcons::Lucide::AlignCenterHorizontal.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: 'M2 12h20')
		s.path(d: 'M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4')
		s.path(d: 'M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4')
		s.path(d: 'M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1')
		s.path(d: 'M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1')
	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="M2 12h20"></path>
	<path d="M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4"></path>
	<path d="M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4"></path>
	<path d="M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1"></path>
	<path d="M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1"></path>
</svg>