31 lines
759 B
JavaScript
31 lines
759 B
JavaScript
/**
|
|
* Search Icon (Lucide)
|
|
* @param {Object} props - Icon properties
|
|
* @param {number} props.size - Icon size (default: 24)
|
|
* @param {string} props.color - Icon color (default: currentColor)
|
|
* @param {number} props.strokeWidth - Stroke width (default: 2)
|
|
* @returns {string} SVG string
|
|
*/
|
|
export function searchIcon({
|
|
size = 24,
|
|
color = "currentColor",
|
|
strokeWidth = 2,
|
|
} = {}) {
|
|
return `
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="${size}"
|
|
height="${size}"
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke="${color}"
|
|
stroke-width="${strokeWidth}"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
>
|
|
<path d="m21 21-4.34-4.34"/>
|
|
<circle cx="11" cy="11" r="8"/>
|
|
</svg>
|
|
`;
|
|
}
|