To implement DestinationHeader component into your project you'll need to add the import:
import DestinationHeader from "@kiwicom/orbit-components/lib/DestinationHeader";
After adding import into your project you can use it simply like:
<DestinationHeader image="dubai_ae" destinationCity="Dubai" />
Table below contains all types of the props available in DestinationHeader component.
||Optional prop for testing purposes.|
||The name of the destination.|
||The image name of the destination. See Functional specs|
||Function for handling onGoBack event.|
- You don't have to pass entire src of the image. Just
paris_fretc. is enough.