This commit is contained in:
25
frontend/storybook/stories/H2.stories.tsx
Normal file
25
frontend/storybook/stories/H2.stories.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import preview from "#.storybook/preview";
|
||||
|
||||
import { H2 } from "../../src/ts/components/common/Headers";
|
||||
|
||||
const metaH2 = preview.meta({
|
||||
title: "Common/H2",
|
||||
component: H2,
|
||||
parameters: {
|
||||
layout: "centered",
|
||||
},
|
||||
tags: ["autodocs"],
|
||||
});
|
||||
|
||||
export const Default = metaH2.story({
|
||||
args: {
|
||||
text: "Section Header",
|
||||
},
|
||||
});
|
||||
|
||||
export const WithIcon = metaH2.story({
|
||||
args: {
|
||||
text: "Settings",
|
||||
fa: { icon: "fa-cog", variant: "solid" },
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user