I want to use my existing react components which uses styled-components library for styling, but it is ignoring styles done using styled-components library
Reproducible code example
import { Builder } from "@builder.io/react";
import styled from 'styled-components';
const Heading = (props: any) => <h1 style={{ color: props.color }}>{props.title}</h1>;
export const StyledHeading = styled(Heading)`
height: 400px;
`;
Builder.registerComponent(StyledHeading, {
name: "Custom Heading",
inputs: [
{
name: "title",
type: "text",
defaultValue: 'I am b heading!'
},
{
name: "color",
type: "color",
defaultValue: 'black'
}
],
});
height: 400px is not getting applied when I see the preview. Can I make this work somehow ? We want to use all of our existing react components instead of styling them again in builder.io.