I am new to StencilJS and JSX.
In my StencilJS component I have four props:
- disabled:boolean
- hasIcon:boolean
- iconOnly:boolean
- buttonType:string
In my render() function I have:
<Host class={{
'btn': true,
'disabled': this.disabled,
'has-icon': this.hasIcon,
'icon-only': this.iconOnly
}}>
I would like to include the string prop called buttonType to the class but can find no documentation on how to accomplish this.
Any ideas?