Closed Yacobolo closed 1 month ago
Found the solution searching the docs https://docs.fastht.ml/ref/defining_xt_component.html#manual-creation
from fasthtml.common import ft_hx
def ft_path(*c, target_id=None, **kwargs):
return ft_hx('path', *c, target_id=target_id, **kwargs)
ft_path()
The recommended solution is to add from fasthtml.svg import *
, which imports SVG's Path
, or else from fasthtml import svg
, which imports svg.Path
.
Important Notice We do not provide support through GitHub issues. For community-based help, please use either:
If you're reporting a bug, please continue with this template.
Describe the bug A clear and concise description of what the bug is. Used html2ft to convert Bulma Navbar to FT.
The issue: Importing Path from fasthtml.common does not return fastcore.xml.FT same for from fasthtml.common import Path
Minimal Reproducible Example Provide a minimal code snippet that reproduces the issue. This is crucial for us to understand and fix the bug quickly.
Expected behavior A clear and concise description of what you expected to happen. It simply to work.
Environment Information Please provide the following version information:
Confirmation Please confirm the following:
Additional context Add any other context about the problem here.
Screenshots If applicable, add screenshots to help explain your problem.