mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
reflecting name and library in sl-icon (#742)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user