vue-emotion icon indicating copy to clipboard operation
vue-emotion copied to clipboard

Define prop types

Open fatlinesofcode opened this issue 4 years ago • 0 comments

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.

fatlinesofcode avatar Nov 02 '20 11:11 fatlinesofcode