summaryrefslogtreecommitdiff
path: root/app/components/local-button/local-button.story.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-19 03:19:14 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-19 03:19:14 +0200
commitbbb50922bf2d80e6b510eaca35477efb75704722 (patch)
treec18316bd61ca52c09166b88084eaa76554f0ecf6 /app/components/local-button/local-button.story.tsx
parent611085d403550303dbf66ec3f9152f772377f1c4 (diff)
web build with offline support
Diffstat (limited to 'app/components/local-button/local-button.story.tsx')
-rw-r--r--app/components/local-button/local-button.story.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/components/local-button/local-button.story.tsx b/app/components/local-button/local-button.story.tsx
new file mode 100644
index 0000000..22b2f0e
--- /dev/null
+++ b/app/components/local-button/local-button.story.tsx
@@ -0,0 +1,15 @@
+import * as React from "react"
+import { storiesOf } from "@storybook/react-native"
+import { StoryScreen, Story, UseCase } from "../../../storybook/views"
+import { color } from "../../theme"
+import { LocalButton } from "./local-button"
+
+storiesOf("LocalButton", module)
+ .addDecorator((fn) => <StoryScreen>{fn()}</StoryScreen>)
+ .add("Style Presets", () => (
+ <Story>
+ <UseCase text="Primary" usage="The primary.">
+ <LocalButton style={{ backgroundColor: color.error }} />
+ </UseCase>
+ </Story>
+ ))