Hello @Brent9997,
To get rid of default editor styles, you can possibly disable Use default styles from Settings → Advanced Settings → Editor
const ButtonTwilio = (props) => {
const ref = React.useRef();
return (
<Button
ref={(el: HTMLElement | null) => {
console.log("el", props.attributes);
el?.attributes &&
Object.entries(props?.attributes).forEach(
([attributeName, attributeValue]) => {
if (attributeName !== "className") {
el?.setAttribute(attributeName, attributeValue as string);
}
}
);
}}
variant={props.variant}
size={props.size}
>
{props.children}
</Button>
);
};