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

Allow components to take in other components as props #932

Closed
picklelo opened this issue May 2, 2023 · 2 comments
Closed

Allow components to take in other components as props #932

picklelo opened this issue May 2, 2023 · 2 comments
Assignees
Labels
enhancement Anything you want improved
Milestone

Comments

@picklelo
Copy link
Contributor

picklelo commented May 2, 2023

For example so we can pass icons to the chakra select

pc.select(icon=pc.icon("arrow_drop_down"))

and it can compile down to

<Select icon={<MdArrowDropDown />} placeholder='Woohoo! A new icon' />
@picklelo picklelo added this to the v0.1.29 milestone May 2, 2023
@picklelo picklelo added this to Pynecone May 2, 2023
@Lendemor Lendemor added the enhancement Anything you want improved label May 5, 2023
@picklelo picklelo self-assigned this May 8, 2023
@picklelo picklelo modified the milestones: v0.1.29, v0.1.30 May 8, 2023
@iron3oxide
Copy link
Contributor

Is this a duplicate of #236?

@picklelo
Copy link
Contributor Author

picklelo commented May 9, 2023

Ah yes good catch! Will close this and add the other one to the sprint.

@picklelo picklelo closed this as completed May 9, 2023
@github-project-automation github-project-automation bot moved this to Done in Pynecone May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Anything you want improved
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants