-
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(docs): QUV-1018 Create in Storybook the case for TagGroup as legend
- Loading branch information
1 parent
233a021
commit 8d328f6
Showing
5 changed files
with
32 additions
and
3 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
25 changes: 25 additions & 0 deletions
25
packages/core/src/components/TagGroup/TagGroup.cases.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,25 @@ | ||
import * as React from 'react'; | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { Tag, TagGroup } from '..'; | ||
|
||
const meta: Meta<typeof TagGroup> = { | ||
title: 'Components/Core/Feedback/TagGroup/Cases', | ||
component: TagGroup, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof TagGroup>; | ||
|
||
export const AsLegend: Story = { | ||
name: 'As legend', | ||
render: () => | ||
(() => ( | ||
<TagGroup> | ||
<Tag text="New alerts" colorScheme="success" quiet /> | ||
<Tag text="Warning alerts" colorScheme="warning" quiet /> | ||
<Tag text="Error alerts" colorScheme="error" quiet /> | ||
<Tag text="Not defined alerts" colorScheme="data-blue" quiet /> | ||
</TagGroup> | ||
))(), | ||
}; |
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