Skip to content

Commit fe47aaf

Browse files
committed
set up for the demo
1 parent 46a30fe commit fe47aaf

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { PARAM_KEY } from "./constants";
1818

1919
const preview: ProjectAnnotations<Renderer> = {
2020
parameters: {
21-
[PARAM_KEY.REPO]: `https://github.com/stackblitz/docs`,
21+
[PARAM_KEY.REPO]: `https://github.com/stackblitz/storybook-addon-stackblitz`,
2222
}
2323
};
2424

src/stories/Button.stories.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,13 @@ const meta: Meta<typeof Button> = {
1919
export default meta;
2020
type Story = StoryObj<typeof Button>;
2121

22-
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
2322
export const Primary: Story = {
24-
// More on args: https://storybook.js.org/docs/react/writing-stories/args
2523
args: {
2624
primary: true,
27-
label: "Button",
25+
label: "Get my free ticket!",
2826
},
2927
parameters: {
30-
// repositoryUrl: `https://github.com/stackblitz/docs`
31-
filePath: 'docs/links.ts'
28+
filePath: 'src/stories/Button.tsx'
3229
}
3330
};
3431

src/stories/button.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@
99
}
1010
.storybook-button--primary {
1111
color: white;
12-
background-color: #1ea7fd;
12+
padding: 1rem 6rem;
13+
font-size: 90% !important;
14+
line-height: 1.25rem;
15+
height: 56px;
16+
width: 200px;
17+
border-radius: 30px;
18+
background: linear-gradient(#d946ef, #a21caf);
19+
border: solid 1px #d359e6b3;
20+
box-shadow: 1px 1px 4px #000a;
1321
}
1422
.storybook-button--secondary {
1523
color: #333;

0 commit comments

Comments
 (0)