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

Better support for svg files #183

Open
GideonMax opened this issue Jul 23, 2022 · 0 comments
Open

Better support for svg files #183

GideonMax opened this issue Jul 23, 2022 · 0 comments

Comments

@GideonMax
Copy link

Is your feature request related to a problem? Please describe.
I have some svg files and I want to use hope's IconButton to make a button out of those svg files.
I could take all the svg paths and put them into typescript files but that adds more work and unnecessarily complicates matters.

Describe the solution you'd like
An option to create an Icon element out of imported svg files.
for example:

import { createIcon } from "@hope-ui/solid";
import darkModeSvg from "../assets/DarkMode.svg";

const DarkModeIcon = createIcon({
    svg: darkModeSvg
})

Describe alternatives you've considered
I have not considered other alternatives as I do not see another way of doing this.

@fabien-ml fabien-ml added enhancement New feature or request and removed enhancement New feature or request labels Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants