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

variant prop is not being passed into component #155

Open
bmamouri opened this issue Apr 29, 2022 · 1 comment
Open

variant prop is not being passed into component #155

bmamouri opened this issue Apr 29, 2022 · 1 comment

Comments

@bmamouri
Copy link

The variant prop is not being passed down into the created component. I am not sure if this is a bug or it is a design decision. But I think it is a useful prop to have available in the created component by HOC.

const Text = createText<Theme>(({ style, variant, children, ...props }) => {
  // variant is undefined
}
@fortmarek
Copy link
Contributor

Could you provide reproduction steps or a sample? The variant imho should be passed to the Text component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants