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

Cannot combine <Button> and map in VStack/HStack children #10

Open
mkapal opened this issue Jan 5, 2024 · 0 comments
Open

Cannot combine <Button> and map in VStack/HStack children #10

mkapal opened this issue Jan 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mkapal
Copy link
Member

mkapal commented Jan 5, 2024

Map only - OK:

<VStack left={50} top={20} width={20} height={5}>
  {items.map((item) => (
    <Button key={item.id}>
      {item.name}
    </Button>
  ))}
</VStack>

Button + map - error:

<VStack left={50} top={20} width={20} height={5}>
  <Button>Caption</Button>
  {items.map((item) => (
    <Button key={item.id}>
      {item.name}
    </Button>
  ))}
</VStack>
image
@mkapal mkapal added the bug Something isn't working label Jan 5, 2024
@mkapal mkapal self-assigned this Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant