-
Notifications
You must be signed in to change notification settings - Fork 3
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
ad1c153
commit c95da32
Showing
78 changed files
with
4,057 additions
and
3,388 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { Meta, Canvas, ArgTypes, Story } from '@storybook/blocks'; | ||
import Avatar from './Avatar'; | ||
import SectionHeader from '../../storybook/SectionHeader'; | ||
import * as AvatarStories from './Avatar.stories'; | ||
|
||
<Meta of={AvatarStories} /> | ||
|
||
<SectionHeader title={'Avatar'} /> | ||
|
||
- [Overview](#overview) | ||
- [Props](#props) | ||
- [Usage](#usage) | ||
- [Variants](#variants) | ||
|
||
## Overview | ||
|
||
A universal Avatar component can be found around ictinus on menus or can be a standalone component as well. It renders either images, letter or icon from our library | ||
|
||
## Props | ||
|
||
<ArgTypes of={Avatar} /> | ||
|
||
## Usage | ||
|
||
<UsageGuidelines | ||
guidelines={['Use an avatar to consistently represent a person, group, or project']} | ||
policies={[ | ||
'Don’t use when the the max amount of users related to the value is one: use an avatar instead', | ||
]} | ||
/> | ||
|
||
<SubsectionHeader title="Variants" /> | ||
|
||
### Avatar with icon | ||
|
||
Avatar with icon | ||
|
||
<Canvas of={AvatarStories.AvatarWithIcon} /> | ||
|
||
### Avatar with letter | ||
|
||
Avatar with letter | ||
|
||
<Canvas of={AvatarStories.AvatarWithLetter} /> | ||
|
||
### Avatar with src | ||
|
||
Avatar with src | ||
|
||
<Canvas of={AvatarStories.AvatarWithSrc} /> | ||
|
||
### Avatar Playground | ||
|
||
Avatar Playground | ||
|
||
<Canvas of={AvatarStories.AvatarPlayground} /> |
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,41 @@ | ||
import { Meta, Canvas, ArgTypes, Story } from '@storybook/blocks'; | ||
import AvatarStack from './AvatarStack'; | ||
import SectionHeader from '../../storybook/SectionHeader'; | ||
import * as AvatarStackStories from './AvatarStack.stories'; | ||
import Overview from '../../storybook/Overview'; | ||
|
||
<Meta of={AvatarStackStories} /> | ||
|
||
<SectionHeader title={'Avatar Stack'} /> | ||
|
||
- [Overview](#overview) | ||
- [Props](#props) | ||
- [Usage](#usage) | ||
- [Variants](#variants) | ||
|
||
## Overview | ||
|
||
A universal AvatarStack component that renders its children as a stack. | ||
|
||
## Props | ||
|
||
<ArgTypes of={AvatarStack} /> | ||
|
||
## Usage | ||
|
||
<UsageGuidelines | ||
guidelines={[ | ||
'When you need to show a visual representation of users related to a specific value in the data set', | ||
]} | ||
policies={[ | ||
'Don’t use when the the max amount of users related to the value is one: use an avatar instead', | ||
]} | ||
/> | ||
|
||
<SubsectionHeader title="Variants" /> | ||
|
||
### Avatar Stack | ||
|
||
Avatar Stacks in different sizes | ||
|
||
<Canvas of={AvatarStackStories.AvatarStackStory} /> |
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
Oops, something went wrong.