-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
166e536
commit 5387906
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
src/Project/Sugcon2024/Sugcon/src/stories/components/Basic Components/Logo.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import { Default as LogoComponent } from '../../../components/Basic Components/Logo'; | ||
const meta = { | ||
title: 'Components/Logo', | ||
component: LogoComponent, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
tags: ['autodocs'], | ||
argTypes: {}, | ||
} satisfies Meta<typeof LogoComponent>; | ||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
export const Logo: Story = { | ||
name: 'Logo ', | ||
args: { | ||
params: { | ||
styles: '', | ||
}, | ||
fields: { | ||
Image: { | ||
value: { | ||
src: 'https://picsum.photos/1200/800', | ||
alt: 'Logo', | ||
width: '1200', | ||
height: '800', | ||
}, | ||
}, | ||
TargetUrl: { | ||
value: { | ||
href: 'https://www.sitecore.com', | ||
anchor: 'Home', | ||
}, | ||
}, | ||
ImageCaption: { | ||
value: 'SUGCON 2024 Logo', | ||
} | ||
}, | ||
}, | ||
}; |