Skip to content

Illustration

Illustration

jsx
import Coffee from 'intergalactic/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 'intergalactic/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.