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

Define prop types #22

Open
fatlinesofcode opened this issue Nov 2, 2020 · 0 comments
Open

Define prop types #22

fatlinesofcode opened this issue Nov 2, 2020 · 0 comments

Comments

@fatlinesofcode
Copy link

If there a way to same through props types like in vue-styled-components
https://github.com/styled-components/vue-styled-components#adapting-based-on-props

I have a issue where the prop value is not removed the the Dom. e.g.

const StyledBox = styled('div')`
  background-color: ${props => props.background};
<template>
  <StyledBox background="red">
    <slot/>
  </StyledBox>
</template>

renders

<div data-v-02e4c64b="" data-v-469af010="" background="red" class="css-1a3rjkp">Box 1</div>

Ideally we should not be seeing background="red" as an attribute.

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

1 participant