skip to Main Content

Read a variable from tsx to scss file – Reactjs

I need to make a custom component in stencil where the color is dynamic. Any way to take the value of variable from tsx and access it on scss file. The code is below. https://stackblitz.com/edit/stenicil-starter-component-oeyzhz?file=src%2Fcomponents%2Fmy-component%2Fmy-component.tsx&file=src%2Fcomponents%2Fmy-component%2Fmy-component.css

VIEW QUESTION
Back To Top
Search