variant prop is not being passed into component
bmamouri opened this issue · comments
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
}
Could you provide reproduction steps or a sample? The variant imho should be passed to the Text
component.