Why am I getting "not able to style code component"?

Why would this be happening?

Screen Shot 2022-10-21 at 1.06.39 pm.png

it could be that the code component is not forwarding the className to its elements, for example:

function Drawer({className}) {
  // ...
  return (
    <div className={className}>
      { /* ... */ }
    </div>
  );
}

it could be missing the <div className={className}> part

LMK if it helps!

Ok I see.

It is definitely forwarding it, but it’s not the classname of the root element of the component

There’s a container div , and className targets the content div that’s an immediate child

that’s a bug! we should be able to identify it

it should be fixed now!

Oh cool thanks @victor