mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Reflect icon button props
This commit is contained in:
@@ -17,16 +17,16 @@ export class IconButton {
|
||||
button: HTMLButtonElement;
|
||||
|
||||
/** The name of the icon to draw. See the icon component for a full list of icons. */
|
||||
@Prop() name: string;
|
||||
@Prop({ reflect: true }) name: string;
|
||||
|
||||
/** An external URL of an SVG file. */
|
||||
@Prop() src: string;
|
||||
@Prop({ reflect: true }) src: string;
|
||||
|
||||
/** An alternative description to use for accessibility. If omitted, the name or src will be used to generate it. */
|
||||
@Prop() label: string;
|
||||
@Prop({ reflect: true }) label: string;
|
||||
|
||||
/** Set to true to disable the button. */
|
||||
@Prop() disabled = false;
|
||||
@Prop({ reflect: true }) disabled = false;
|
||||
|
||||
componentDidLoad() {
|
||||
focusVisible.observe(this.button);
|
||||
|
||||
Reference in New Issue
Block a user