Open Korab-Doroci opened 3 months ago
I have made a small change in the nuemark code to enable svgs and other components inside of buttons now. The only limitation I found was that the components cant be inside the layout.html, needs to be in a .nue file. Is this something that is worth creating a pull request for?
Sure, give it a try, maybe we even find a way to allow layout components.
(The latest merge commit has some problems test-wise with jest currently. You can test jest without it, if you do your changes after git reset --hard HEAD~1
. Test commands / environment can be found here)
Describe the Bug
Using Nuemark, I can't get this example to work. The only way I found to get around it is to make the button a div, but that is not the behaviour I'm after.
This doesn't work: [button] [mysvg] Learn More
This works but isn't a button: [button] [mysvg] Learn More
Environment
Example:
Minimal Reproduction
bun create nue
@name="mysvg"