Illustration
Illustration
jsx
import Coffee from '@semcore/ui/illustration/Coffee';
<Coffee />;IllustrationProps
| Name | Type | Description |
|---|---|---|
| primaryColor | string | Main color of the illustration |
| secondaryColor | string | Secondary color of the illustration |
| fill | string | Changes background fill of the illustration |
| width | string | number | Width of the illustration |
| height | string | number | Height of the illustration |
Direct link
Any illustration can be obtained using a template.
js
import IllustrationName from '@semcore/ui/illustration/illustrationName';getIllustrationPath
To obtain any illustration, you can use the getIllustrationPath function, which returns the URL in the format https://static.semrush.com/ui-kit/illustration/${version}/${name}.svg.