Skip to content

Commit 1037af6

Browse files
authored
Merge pull request #336 from youda97/skeleton-button
feat(button): Add skeleton state
2 parents aea73dc + 1a70720 commit 1037af6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/button/button.directive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class Button implements OnInit {
3737
@HostBinding("class.bx--btn--ghost") ghost = false;
3838
@HostBinding("class.bx--btn--danger") danger = false;
3939
@HostBinding("class.bx--btn--danger--primary") dangerPrimary = false;
40+
@HostBinding("class.bx--skeleton") @Input() skeleton = false;
4041
@HostBinding("class.bx--btn--sm") smallSize = false;
4142

4243
ngOnInit() {

src/button/button.stories.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,11 @@ storiesOf("Button", module)
2929
props: {
3030
size: select("Size of the buttons", ["normal", "sm"], "normal")
3131
}
32+
}))
33+
.add("Skeleton", () => ({
34+
template: `
35+
<button ibmButton skeleton="true"></button>
36+
&nbsp;
37+
<button ibmButton skeleton="true" size="sm"></button>
38+
`
3239
}));

0 commit comments

Comments
 (0)