Skip to content

Commit a3f7092

Browse files
committed
fix: fixed code of Avatar
1 parent bc9820f commit a3f7092

File tree

4 files changed

+89
-0
lines changed

4 files changed

+89
-0
lines changed

src/components/Avatar/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# 🤠 Avatar
2+
3+
Avatar control enables users to add images, icons or initials
4+
within any application for instances such as a profile pictures.
5+
6+
## Usage
7+
8+
```jsx
9+
<Avatar type="image" image={{ uri: 'https://picsum.photos/200' }} />
10+
```
11+
12+
## Screenshots
13+
14+
Add screenshots here
15+
16+
## Supported Props
17+
18+
> Legend
19+
> ✅ = Fully Compatible and works as intended
20+
> ⚠️ = Partially compatible
21+
> ❌ = Not compatible
22+
23+
| Prop | Compatible | Comments |
24+
| :---: | :--------: | :--------------------------: |
25+
| type | ️⚠️ | Only works with `image` type |
26+
| size | ❌ ️ | |
27+
| color | ❌ ️ | |
28+
| icon | ❌ ️ | |
29+
| image | ❌ ️ | |
30+
| text | ❌ ️ | |
31+
| style | ❌ ️ | |
32+
33+
## User Stories
34+
35+
| Story | In Storybook | Has Unit Test |
36+
| :-------------------------------------------------------------: | :----------: | :-----------: |
37+
| User should be able to use Image Avatar by setting image path |||
38+
| User should be able to use Image Avatar importing image in code |||
417 KB
Loading
Lines changed: 50 additions & 0 deletions
Loading

src/components/Avatar/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './Avatar';

0 commit comments

Comments
 (0)