If we scaffold out a new vite lit project with npm init vite@latest the comment on my-element contains @csspart:
/**
* An example element.
*
* @slot - This element has a slot
* @csspart button - The button
*/
@customElement('my-element')
export class MyElement extends LitElement {
What is @csspart for?
::partCSS selector andpartattribute to style shadowDOM parts: developer.mozilla.org/en-US/docs/Web/CSS/::partpartattribute ...