Passing props to a component that was inherited from another #578
Unanswered
franklinjavier
asked this question in
Help
Replies: 1 comment
-
Everything works as you might have expected it @franklinjavier - you just didn't create The simplest way to fix it is like this: // App.tsx
export default function App() {
return (
<Provider>
<Heading css={{color: "$brand-1"}}>Heading 1</Heading>
<Heading as="h2" css={{color: "$brand-2"}}>
Heading 2
</Heading>
)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys... I'm trying to pass the color prop from a component to another (that was inherited), but apparently the prop is not reaching its destination. Has anyone ever experienced this?
I created a repo to reproduce the problema I'm facing https://codesandbox.io/s/flora-forked-c2l50?file=/src/App.tsx
thanks
Potentially related issue
#507
Beta Was this translation helpful? Give feedback.
All reactions