vscode-elements / elements

Web component library for developing Visual Studio Code extensions
https://vscode-elements.github.io
MIT License
156 stars 27 forks source link

'VscodeLabel' cannot be used as a JSX component. #197

Closed brodao2 closed 1 month ago

brodao2 commented 1 month ago

I'm trying to use VscodeLabel in a react component and I get the error:

'VscodeLabel' cannot be used as a JSX component.

Any suggestions?

Grateful.

export class TdsLabel extends React.Component<TdsLabel> {
    render() {
        return (
            <React.Fragment>
                <VscodeLabel >

                </VscodeLabel >
            </React.Fragment>
        );
    }
}
bendera commented 1 month ago

I haven't tried it yet, but at first glance, I see a whitespace in the VscodeLabel tag.

bendera commented 1 month ago

Ok, I've found it. I'll fix it right away.

bendera commented 1 month ago

Done. Please reinstall it with npm i @vscode-elements/react-elements@latest