Add AttachmentSection
to style guide
This commit is contained in:
parent
121bb0ecef
commit
d349dd903d
1 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
||||||
|
```jsx
|
||||||
|
const messages = [
|
||||||
|
{
|
||||||
|
attachments: [
|
||||||
|
{
|
||||||
|
fileName: 'foo.json',
|
||||||
|
contentType: 'application/json',
|
||||||
|
size: 53313,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
attachments: [
|
||||||
|
{
|
||||||
|
fileName: 'bar.txt',
|
||||||
|
contentType: 'text/plain',
|
||||||
|
size: 10323,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
<AttachmentSection header="Today" type="documents" messages={messages} />;
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue