A basic type that allows you to customize illustrations.
To implement IllustrationPrimitive component into your project you’ll need to add the import:
import IllustrationPrimitive from "@kiwicom/orbit-components/lib/primitives/IllustrationPrimitive";
After adding import into your project you can use it simply like:
<IllustrationPrimitive name="Accommodation" size="small" />
As with every primitive, you should have a good reason to use
IllustrationPrimitive, prefer usage of
AirportIllustration as they are typed more strictly.
Table below contains all types of the props available in IllustrationPrimitive component.
|alt||Optional property for passing own |
|dataTest||Optional prop for testing purposes.|
|name||Name for the displayed illustrationPrimitive.|
|size||The size of the IllustrationPrimitive.|