Skip to content

Illustration

@semcore/illustration is a separate package that needs to be installed manually.

sh
pnpm add @semcore/illustration
sh
npm install @semcore/illustration

Illustration

jsx
import Coffee from '@semcore/illustration/Coffee';
<Coffee />;

IllustrationProps

NameTypeDescription
primaryColorstring Main color of the illustration
secondaryColorstring Secondary color of the illustration
fillstring Changes background fill of the illustration
widthstring | number Width of the illustration
heightstring | number Height of the illustration

Any illustration can be obtained using a template.

js
import IllustrationName from '@semcore/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.

Released under the MIT License.

Released under the MIT License.