Skip to content

Commit 4e9f746

Browse files
dragerkara
authored andcommitted
docs(button): update example code to match image (#801)
1 parent cbf3b6b commit 4e9f746

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/button/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ Output:
8080
### Disabling
8181

8282
You can disable any button type through the native `disabled` property. You can add it directly, or bind it to a property on your
83-
component class.
83+
component class by adding `[disabled]="isDisabled"` given that the `isDisabled`
84+
property exists.
8485

8586
```html
86-
<button md-button disabled>off</button>
87-
<button md-raised-button [disabled]="isDisabled">off</button>
88-
<button md-mini-fab [disabled]="isDisabled">check circle</button>
87+
<button md-button disabled>OFF</button>
88+
<button md-raised-button [disabled]="isDisabled">OFF</button>
89+
<button md-mini-fab [disabled]="isDisabled"><md-icon>check</md-icon></button>
8990
```
9091

9192
Output:

0 commit comments

Comments
 (0)