-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: theocrsb <[email protected]>
- Loading branch information
Showing
7 changed files
with
71 additions
and
25 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
storybook/stories/ManchetteSplit/ManchetteSplit.stories.tsx
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,37 @@ | ||
import React from 'react'; | ||
|
||
import '@osrd-project/ui-core/dist/theme.css'; | ||
import '@osrd-project/ui-manchette/dist/theme.css'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import Manchette from '../../../ui-manchette/src/components/Manchette'; | ||
import { SAMPLE_WAYPOINTS } from '../../../ui-manchette/src/stories/assets/sampleData'; | ||
const meta: Meta<typeof Manchette> = { | ||
component: Manchette, | ||
title: 'Manchette/ManchetteSplit', | ||
tags: ['autodocs'], | ||
argTypes: { contents: { control: { type: 'object' } } }, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof Manchette>; | ||
|
||
const customDiv = ( | ||
<div style={{ height: 'auto', minHeight: 24, backgroundColor: 'rgba(152, 192, 245, 1)' }}> | ||
Hello World | ||
</div> | ||
); | ||
|
||
export const Default: Story = { | ||
args: { | ||
contents: [ | ||
SAMPLE_WAYPOINTS[0], | ||
customDiv, | ||
SAMPLE_WAYPOINTS[1], | ||
SAMPLE_WAYPOINTS[2], | ||
customDiv, | ||
SAMPLE_WAYPOINTS[3], | ||
customDiv, | ||
], | ||
}, | ||
}; |
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
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
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
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
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
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