Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notation .styled(Box)``; does not work #146

Open
elliotBraem opened this issue Oct 18, 2023 · 2 comments
Open

notation .styled(Box)``; does not work #146

elliotBraem opened this issue Oct 18, 2023 · 2 comments

Comments

@elliotBraem
Copy link
Contributor

Declaring a styled component and then using it to define another:

const Box = styled.div`
  background-color: white;
  margin: 10px;
`;

const FirstBox = styled(Box)`
  height: 200px;
`;

const SecondBox = styled(Box)`
  height: 400px;
`;

const ThirdBox = styled(Box)`
  flex-grow: 1;
`;

Error:

t.split is not a function

Try it out

@lachlanglen
Copy link

+1 would be awesome to resolve this

@hsiaosiyuan0
Copy link

I posted a PR for this issue #166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants