Copy and paste the following SVG code into your HTML file where you want the icon to appear. Then, you can customize the SVG attributes, such as size or color, using inline styling or CSS classes.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="1em" height="1em">
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 18C5 18 5 16 5 16L5 5C5 5 5 3 7 3L17 3C19 3 19 5 19 5L19 16C19 16 19 18 17 18L7 18ZM7 18L5 21M17 18L19 21M6 12L18 12M12 15L12 15" />
</svg>
You can integrate this icon in your React application using our React icons components. First install the package using YARN or NPM:
$ yarn add @josemi-icons/react
Now you can import this icon in your React application
import {TrainFrontIcon} from "@josemi-icons/react";
Alternatively, if you only need this icon jou can just copy and paste the following component into your React application:
const TrainFrontIcon = () => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="1em" height="1em">
<path fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M7 18C5 18 5 16 5 16L5 5C5 5 5 3 7 3L17 3C19 3 19 5 19 5L19 16C19 16 19 18 17 18L7 18ZM7 18L5 21M17 18L19 21M6 12L18 12M12 15L12 15" />
</svg>
);
You can now use the icon component in your React application like any other React component.