score:0

no, this is not possible. the whole idea of styled-components is to return new components. and if you want to create classes you should have a look at glamor or aphrodite. and here is a link to a discussion on github.

score:0

if you want to customize an existing styled component, you can use the .extend() api.

for example:

const button = styled.div`
  background-color: red;
`;

const bluebutton = button.extend`
  background-color: blue;
`;

export default () => (
  <bluebutton />
);

Related Query

More Query from same tag