Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Button array style story
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Laco committed Sep 26, 2018
1 parent 783d93f commit 6ecb0c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion boilerplate/src/views/shared/button/button.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ storiesOf("Button", module)
.add("Style Presets", () => (
<Story>
<UseCase text="Primary" usage="The primary button.">
<Button text={"Click It"} onPress={() => window.alert("pressed")} style={buttonStyleArray} />
<Button text="Click It" onPress={() => window.alert("pressed")} />
</UseCase>
<UseCase text="Disabled" usage="The disabled behaviour of the primary button.">
<Button text="Click It" preset="primary" onPress={() => window.alert("pressed")} disabled />
</UseCase>
<UseCase text="Array Style" usage="Button with array style" >
<Button text="Click It" preset="primary" onPress={() => window.alert("pressed")} style={buttonStyleArray} />
</UseCase>
</Story>
))

0 comments on commit 6ecb0c5

Please sign in to comment.