-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2066 from innovaccer/develop
Develop
- Loading branch information
Showing
37 changed files
with
2,438 additions
and
489 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
33 changes: 33 additions & 0 deletions
33
core/components/atoms/avatar/__stories__/variants/Shape.story.jsx
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,33 @@ | ||
import * as React from 'react'; | ||
import { Avatar } from '@/index'; | ||
import Text from '@/components/atoms/text'; | ||
|
||
// CSF format story | ||
export const shape = () => { | ||
const weight = 'strong'; | ||
|
||
return ( | ||
<div className="d-flex"> | ||
<div className="mr-9 d-flex flex-column"> | ||
<Text weight={weight}>Round</Text> <br /> | ||
<Avatar appearance="accent2" firstName="John" lastName="Doe" /> | ||
</div> | ||
<div className="mr-9 d-flex flex-column"> | ||
<Text weight={weight}>Square</Text> <br /> | ||
<Avatar appearance="accent2" firstName="John" lastName="Doe" shape="square" /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default { | ||
title: 'Indicators/Avatar/Variants/Shape', | ||
component: Avatar, | ||
parameters: { | ||
docs: { | ||
docPage: { | ||
title: 'Avatar', | ||
}, | ||
}, | ||
}, | ||
}; |
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
Oops, something went wrong.