Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Border #915

Open
Faheem-Siddiqi opened this issue Mar 13, 2024 · 2 comments
Open

[Feature]: Border #915

Faheem-Siddiqi opened this issue Mar 13, 2024 · 2 comments

Comments

@Faheem-Siddiqi
Copy link

Describe

I want to add border to icon but its giving me square border.

image

Solution

Border to icon, not a square border

Minimal sample repository URL

No response

Additional context

I am using tailwindscss

@nazmulweb
Copy link

You can add a border using CSS. Let's say your icon is something like that, and you would like to add a border here. Then use the stroke and stroke-width of CSS in the path tag.

<svg ....> <path d="....."></path> </svg>

path { stroke: red; stroke-width: 1px; }

@Faheem-Siddiqi
Copy link
Author

You can add a border using CSS. Let's say your icon is something like that, and you would like to add a border here. Then use the stroke and stroke-width of CSS in the path tag.

<svg ....> <path d="....."></path> </svg>

path { stroke: red; stroke-width: 1px; }

I am asking specifically for React Icons consider
import { CiHeart } from "react-icons/ci";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants