vue-emotion
vue-emotion copied to clipboard
Define prop types
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.