Skip to content

Commit c757856

Browse files
committed
Update storybook
1 parent f18c6d7 commit c757856

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

frontend/src/components/common/Avatar/Avatar.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55
border: solid 1px rgba(0, 0, 0, 0.1);
66
border-radius: 50%;
77
overflow: hidden;
8+
9+
img {
10+
width: 100%;
11+
height: 100%;
12+
}
813
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Avatar from './Avatar';
3+
4+
export default {
5+
title: 'components|common/Avatar',
6+
component: Avatar,
7+
};
8+
9+
export const Default = () => (
10+
<Avatar
11+
src="https://cdn0.iconfinder.com/data/icons/profession-vol-1/32/avatar_superman_DC_comics_superhero_character_inspiression_-128.png"
12+
alt="아바타"
13+
/>
14+
);

0 commit comments

Comments
 (0)