PricingBlog

Viewport-width for component within component

  • switchman8850-1284673550049087528

    switchman8850

    1 year ago

    I have a button component that has an attribute called button-width, and I'm using this button component within another component I'm building. I want this button-width to be a certain value when the viewport-width is above 500px, and another value when it is below. How can I do this to a component when it is being used within another component?
    1284673550388695155-image.png
  • lucasg-1284704633960398881

    Lucas G

    1 year ago

    Is this good now?