Add style guide examples for ContactName and ConversationTitle
parent
2988da0981
commit
9dedda84e2
@ -0,0 +1,32 @@
|
||||
#### With name and profile
|
||||
|
||||
```jsx
|
||||
<div style={{ backgroundColor: 'gray', color: 'white' }}>
|
||||
<ContactName
|
||||
i18n={util.i18n}
|
||||
name="Someone 🔥 Somewhere"
|
||||
phoneNumber="+12025550011"
|
||||
profileName="🔥Flames🔥"
|
||||
/>
|
||||
</div>
|
||||
```
|
||||
|
||||
#### Profile, no name
|
||||
|
||||
```jsx
|
||||
<div style={{ backgroundColor: 'gray', color: 'white' }}>
|
||||
<ContactName
|
||||
i18n={util.i18n}
|
||||
phoneNumber="+12025550011"
|
||||
profileName="🔥Flames🔥"
|
||||
/>
|
||||
</div>
|
||||
```
|
||||
|
||||
#### No name, no profile
|
||||
|
||||
```jsx
|
||||
<div style={{ backgroundColor: 'gray', color: 'white' }}>
|
||||
<ContactName i18n={util.i18n} phoneNumber="+12025550011" />
|
||||
</div>
|
||||
```
|
@ -0,0 +1,45 @@
|
||||
#### With name and profile, verified
|
||||
|
||||
```jsx
|
||||
<div style={{ backgroundColor: 'gray', color: 'white' }}>
|
||||
<ConversationTitle
|
||||
i18n={util.i18n}
|
||||
isVerified
|
||||
name="Someone 🔥 Somewhere"
|
||||
phoneNumber="+12025550011"
|
||||
profileName="🔥Flames🔥"
|
||||
/>
|
||||
</div>
|
||||
```
|
||||
|
||||
#### With name, not verified
|
||||
|
||||
```jsx
|
||||
<div style={{ backgroundColor: 'gray', color: 'white' }}>
|
||||
<ConversationTitle
|
||||
i18n={util.i18n}
|
||||
name="Someone 🔥 Somewhere"
|
||||
phoneNumber="+12025550011"
|
||||
/>
|
||||
</div>
|
||||
```
|
||||
|
||||
#### Profile, no name
|
||||
|
||||
```jsx
|
||||
<div style={{ backgroundColor: 'gray', color: 'white' }}>
|
||||
<ConversationTitle
|
||||
i18n={util.i18n}
|
||||
phoneNumber="+12025550011"
|
||||
profileName="🔥Flames🔥"
|
||||
/>
|
||||
</div>
|
||||
```
|
||||
|
||||
#### No name, no profile
|
||||
|
||||
```jsx
|
||||
<div style={{ backgroundColor: 'gray', color: 'white' }}>
|
||||
<ConversationTitle i18n={util.i18n} phoneNumber="+12025550011" />
|
||||
</div>
|
||||
```
|
Loading…
Reference in New Issue