Skip to content

Props inside a container-query doesn't work #1

Open
@nicholasmaddren

Description

@nicholasmaddren

Hey, I'd just like to say that this add-on is awesome and saved me so much pain.

I am having one issue with it though, I want to be able to set the container query by using passed props like the following example:

https://codesandbox.io/s/6wn8pvw673

When I add the minWidth prop to the :container like so:

&:container(min-width: ${props => props.minWidth}) {}

This error occurs:
Invalid attempt to destructure non-iterable instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions