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

Can't pass icons as a prop argument for an Astro component #1

Open
leivadev opened this issue Jun 16, 2024 · 0 comments
Open

Can't pass icons as a prop argument for an Astro component #1

leivadev opened this issue Jun 16, 2024 · 0 comments

Comments

@leivadev
Copy link

Description

Trying to create Astro components using astro-feather icons as a prop but doesn't work as a JSX component or a direct function.
image

Trying with a JSX syntax:

image
Error: Expected ">" but found "/"

Trying with a function syntax:

image

Error: Invalid arguments passed to component.
Astro components cannot be rendered directly via function call, such as Component() or {items.map(Component)}.
Docs reference

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

1 participant