How to use the Tanzania icon
import { TanzaniaFlag } from "@/assets/icons/tanzaniaFlag"
export default function Example() {
return <TanzaniaFlag width="32px" height="32px" />
}Flags icon
Copy the Tanzania icon as an optimized JSX SVG component for React, Next.js, dashboards, landing pages and Tailwind interfaces.
Copy-ready code
// Source: https://raw.githubusercontent.com/lipis/flag-icons/086f7e97d657358203916dbe84f61c2bccaa81eb/flags/4x3/tz.svg
// Asset license: flag-icons MIT. Country flags are national symbols; use respectfully and verify local requirements where applicable.
export const TanzaniaFlag = ({ width = "40px", height = "30px", ...props }) => (
<svg {...props} width={width} height={height} viewBox="0 0 640 480" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" preserveAspectRatio="xMidYMid meet">
<defs>
<clipPath id="tz-a">
<path fillOpacity=".7" d="M10 0h160v120H10z"/>
</clipPath>
</defs>
<g fillRule="evenodd" strokeWidth="1pt" clipPath="url(#tz-a)" transform="matrix(4 0 0 4 -40 0)">
<path fill="#09f" d="M0 0h180v120H0z"/>
<path fill="#090" d="M0 0h180L0 120z"/>
<path fill="#000001" d="M0 120h40l140-95V0h-40L0 95z"/>
<path fill="#ff0" d="M0 91.5 137.2 0h13.5L0 100.5zM29.3 120 180 19.5v9L42.8 120z"/>
</g>
</svg>
)
import { TanzaniaFlag } from "@/assets/icons/tanzaniaFlag"
export default function Example() {
return <TanzaniaFlag width="32px" height="32px" />
}Built for the web
This copy-ready component works in React and Next.js projects, and the SVG can be adapted for any interface.
Looking for a similar mark? Browse the related icons below or explore the full flags collection.
Yes. You can copy the JSX component and use it in React and Next.js projects.
Yes. Edit the SVG attributes or pass className, width, height and color props depending on the component.