Skip to content

Commit 0554cfb

Browse files
committed
updat(button): Update story to match vanilla demos
1 parent 3488f8e commit 0554cfb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/button/button.stories.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ storiesOf("Button", module)
1414
.addDecorator(withKnobs)
1515
.add("Basic", () => ({
1616
template: `
17-
<button ibmButton [size]="size">A button</button>
18-
<br><br>
19-
<button ibmButton="secondary" [size]="size">A secondary button</button>
20-
<br><br>
21-
<button ibmButton="tertiary" [size]="size">A tertiary button</button>
22-
<br><br>
23-
<button ibmButton="ghost" [size]="size">A ghost button</button>
24-
<br><br>
25-
<button ibmButton="danger" [size]="size">A danger button</button>
26-
<br><br>
27-
<button ibmButton="danger--primary" [size]="size">A primary danger button</button>
17+
<button [ibmButton]="ibmButton" [size]="size">Button</button>
18+
&nbsp;
19+
<button [ibmButton]="ibmButton" [size]="size" disabled="true">Button</button>
20+
&nbsp;
21+
<button [ibmButton]="ibmButton" [size]="size">
22+
With icon
23+
<svg class="bx--btn__icon" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
24+
<path d="M7 7H4v2h3v3h2V9h3V7H9V4H7v3zm1 9A8 8 0 1 1 8 0a8 8 0 0 1 0 16z" fill-rule="evenodd" />
25+
</svg>
26+
</button>
2827
`,
2928
props: {
29+
ibmButton: select("Button kind", ["primary", "secondary", "tertiary", "ghost", "danger", "danger--primary"], "primary"),
3030
size: select("Size of the buttons", ["normal", "sm"], "normal")
3131
}
3232
}))

0 commit comments

Comments
 (0)