mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 02:48:23 +01:00
Stickers
Co-authored-by: scott@signal.org Co-authored-by: ken@signal.org
This commit is contained in:
committed by
Scott Nonnenberg
parent
8c8856785b
commit
29de50c12a
@@ -384,3 +384,26 @@ const attachments = [
|
||||
</div>
|
||||
</div>;
|
||||
```
|
||||
|
||||
### Sticker
|
||||
|
||||
```
|
||||
const attachments = [
|
||||
{
|
||||
url: util.squareStickerObjectUrl,
|
||||
contentType: 'image/webp',
|
||||
width: 512,
|
||||
height: 512,
|
||||
},
|
||||
];
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<ImageGrid isSticker={true} stickerSize={128} attachments={attachments} i18n={util.i18n} />
|
||||
</div>
|
||||
<hr />
|
||||
<div>
|
||||
<ImageGrid isSticker={true} stickerSize={128} withContentAbove withContentBelow attachments={attachments} i18n={util.i18n} />
|
||||
</div>
|
||||
</div>;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user