Implement the filter attribute within the style property of the component.
import Image from 'next/image'
...
<Image src="/emotion.svg" alt="emtion" style={{ filter: 'invert(100%)' }} width={50} height={50} />
To give the SVG icon a blue color using the invert filter, adjust the filter settings accordingly. In this scenario, flipping the colors will change black areas to white and white areas to black. To achieve a blue hue, you must undergo another color inversion process.
<Image src="/emotion.svg" alt="emtion" style={{ filter: 'invert(100%) sepia(100%) saturate(10000%) hue-rotate(180deg)' }} width={50} height={50} />
You have the option to tweak the sepia, saturate, and hue-rotate values to customize the blue shade as desired. For instance, lowering the saturate value can soften the color intensity, while adjusting the hue-rotate value can shift the blue tone.