Add `AttachmentSection` to style guide
parent
121bb0ecef
commit
d349dd903d
@ -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…
Reference in New Issue