Here's an example of an SVG code for an info symbol:
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<line x1="12" y1="16" x2="12" y2="12" stroke="currentColor" stroke-width="2"/>
<line x1="12" y1="8" x2="12" y2="8.01" stroke="currentColor" stroke-width="2"/>
</svg>
This code creates a circle with a radius of 10 and a stroke width of 2, which represents the outer boundary of the info symbol. Inside the circle, there are two lines that intersect at the center of the circle, forming a lowercase "i" shape, which is a common representation of an info symbol.
You can customize the appearance of the info symbol by changing the values of the attributes, such as the stroke
color, stroke-width
, and fill
color. For example, you can change the stroke
color to "#007aff"
to create a blue info symbol:
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12" r="10" stroke="#007aff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<line x1="12" y1="16" x2="12" y2="12" stroke="#007aff" stroke-width="2"/>
<line x1="12" y1="8" x2="12" y2="8.01" stroke="#007aff" stroke-width="2"/>
</svg>
I hope this helps! Let me know if you have any questions.