-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(SLB-438): prestyling on messages
- Loading branch information
Luqmaan Essop
committed
Jun 27, 2024
1 parent
a9be1dd
commit 5ee2466
Showing
4 changed files
with
134 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { Messages as Component } from './Messages'; | ||
|
||
export default { | ||
parameters: { | ||
layout: 'fullscreen', | ||
}, | ||
component: Component, | ||
} satisfies Meta<typeof Component>; | ||
|
||
export const Info: StoryObj<typeof Component> = { | ||
parameters: { | ||
location: new URL('local:/gatsby-turbo'), | ||
}, | ||
args: { | ||
messages: [ | ||
'<p>This is an Info message, <a href=#>linked item</a></p><ul><li>Fribourgeoise</li><li>Moitié-Moitié</li></ul>', | ||
'<p>This is a Warning message, <a href=#>linked item</a></p>', | ||
'<p>This is a Danger message, <a href=#>linked item</a></p>', | ||
'<p>This is a Success message, <a href=#>linked item</a></p>', | ||
], | ||
messageComponents: [ | ||
'This page is not available in the requested language.', | ||
], | ||
}, | ||
}; |
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