nb-button
Properties and attributes
Section titled “Properties and attributes”| Name | Type | Default | Notes |
|---|---|---|---|
variant |
'primary' | 'accent' |
'primary' |
Reflected to the attribute |
disabled |
boolean |
false |
Reflected to the attribute |
const button = document.querySelector('nb-button')button.disabled = truebutton.variant = 'accent'