Button

PhlexIcons::Radix

Source code

Icon ↓

With Phlex::Kit

Radix::Button()

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

render PhlexIcons::Radix::Button.new

Plain Phlex ↓

def view_template
	svg(
		**attrs,
		viewbox: '0 0 15 15',
		fill: 'none',
		xmlns: 'http://www.w3.org/2000/svg'
	) do |s|
		s.path(
			d:
				'M13.2041 4.01074C14.2128 4.113 15 4.96435 15 6V9L14.9893 9.2041C14.8938 10.1457 14.1457 10.8938 13.2041 10.9893L13 11H2L1.7959 10.9893C0.854346 10.8938 0.1062 10.1457 0.0107422 9.2041L0 9V6C0 4.96435 0.787223 4.113 1.7959 4.01074L2 4H13L13.2041 4.01074ZM2 5C1.48232 5 1.05621 5.39333 1.00488 5.89746L1 6V9C1 9.55228 1.44772 10 2 10H13C13.5523 10 14 9.55228 14 9V6C14 5.48232 13.6067 5.05621 13.1025 5.00488L13 5H2ZM4.5 6.75C4.91421 6.75 5.25 7.08579 5.25 7.5C5.25 7.91421 4.91421 8.25 4.5 8.25C4.08579 8.25 3.75 7.91421 3.75 7.5C3.75 7.08579 4.08579 6.75 4.5 6.75ZM7.5 6.75C7.91421 6.75 8.25 7.08579 8.25 7.5C8.25 7.91421 7.91421 8.25 7.5 8.25C7.08579 8.25 6.75 7.91421 6.75 7.5C6.75 7.08579 7.08579 6.75 7.5 6.75ZM10.5 6.75C10.9142 6.75 11.25 7.08579 11.25 7.5C11.25 7.91421 10.9142 8.25 10.5 8.25C10.0858 8.25 9.75 7.91421 9.75 7.5C9.75 7.08579 10.0858 6.75 10.5 6.75Z',
			fill: 'currentColor'
		)
	end
end

Plain SVG ↓

<svg xmlns="http://www.w3.org/2000/svg" class="" viewbox="0 0 15 15" fill="none">
	<path d="M13.2041 4.01074C14.2128 4.113 15 4.96435 15 6V9L14.9893 9.2041C14.8938 10.1457 14.1457 10.8938 13.2041 10.9893L13 11H2L1.7959 10.9893C0.854346 10.8938 0.1062 10.1457 0.0107422 9.2041L0 9V6C0 4.96435 0.787223 4.113 1.7959 4.01074L2 4H13L13.2041 4.01074ZM2 5C1.48232 5 1.05621 5.39333 1.00488 5.89746L1 6V9C1 9.55228 1.44772 10 2 10H13C13.5523 10 14 9.55228 14 9V6C14 5.48232 13.6067 5.05621 13.1025 5.00488L13 5H2ZM4.5 6.75C4.91421 6.75 5.25 7.08579 5.25 7.5C5.25 7.91421 4.91421 8.25 4.5 8.25C4.08579 8.25 3.75 7.91421 3.75 7.5C3.75 7.08579 4.08579 6.75 4.5 6.75ZM7.5 6.75C7.91421 6.75 8.25 7.08579 8.25 7.5C8.25 7.91421 7.91421 8.25 7.5 8.25C7.08579 8.25 6.75 7.91421 6.75 7.5C6.75 7.08579 7.08579 6.75 7.5 6.75ZM10.5 6.75C10.9142 6.75 11.25 7.08579 11.25 7.5C11.25 7.91421 10.9142 8.25 10.5 8.25C10.0858 8.25 9.75 7.91421 9.75 7.5C9.75 7.08579 10.0858 6.75 10.5 6.75Z" fill="currentColor"></path>
</svg>