reflecting name and library in sl-icon (#742)

This commit is contained in:
Buni48
2022-05-02 22:26:37 +02:00
committed by GitHub
parent 04bacccfea
commit 240db01e75

View File

@@ -26,7 +26,7 @@ export default class SlIcon extends LitElement {
@state() private svg = '';
/** The name of the icon to draw. */
@property() name?: string;
@property({ reflect: true }) name?: string;
/**
* An external URL of an SVG file.
@@ -39,7 +39,7 @@ export default class SlIcon extends LitElement {
@property() label = '';
/** The name of a registered custom icon library. */
@property() library = 'default';
@property({ reflect: true }) library = 'default';
connectedCallback() {
super.connectedCallback();