A pack of extensions for grommet 2
created:7/7/2021
updated:7/7/2021
loc
17
comments
18%
failed
4
coverage
50%

ImageStamp

avatar of atanasster

A small image stamp used for avatars or image thumbnails

Main

Name
Description
Default
Controls
contain

Adjust width/height if image is not square. By default, the image is cut off square

widthheight
{
  "value": null
}
plain

Whether this is a plain image with no border

boolean
false
round

How much to round the corners of the stamp

mediumlargexsmallsmallfull
-
size

The size of the image stamp

mediumlargexlargexxlarge
medium
src

The image source url

string
-

Tests results

Status
Full name
Title
Time(ms)
ImageStamp.test.ts(4 tests)
failed
ImageStamp > main
snapshot
62
failed
ImageStamp > main
accessibility
133
failed
ImageStamp > size
snapshot
16
failed
ImageStamp > size
accessibility
62
total 4 tests

Tests coverage

Kind
Total
Covered
Skipped
%
ImageStamp.tsx
lines
7
7
0
100%
functions
1
1
0
100%
statements
9
9
0
100%
branches
2
1
0
50%

A11y tests

Viewport

320px
375px
768px
1024px