How to use the Pakistan icon
import { PakistanFlag } from "@/assets/icons/pakistanFlag"
export default function Example() {
return <PakistanFlag width="32px" height="32px" />
}Flags icon
Copy the Pakistan 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/main/flags/4x3/pk.svg
// Asset license: flag-icons MIT. Country flags are national symbols; use respectfully and verify local requirements where applicable.
export const PakistanFlag = ({ 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="pk-a">
<path fill-opacity=".7" d="M-52.3 0h682.6v512H-52.3z"/>
</clipPath>
</defs>
<g fillRule="evenodd" strokeWidth="1pt" clip-path="url(#pk-a)" transform="translate(49)scale(.9375)">
<path fill="#0c590b" d="M-95 0h768v512H-95z"/>
<path fill="#fff" d="M-95 0H97.5v512H-95z"/>
<g fill="#fff">
<path d="m403.7 225.4-31.2-6.6-16.4 27.3-3.4-31.6-31-7.2 29-13-2.7-31.7 21.4 23.6 29.3-12.4-15.9 27.6 21 24z"/>
<path d="M415.4 306a121 121 0 0 1-161.3 59.4 122 122 0 0 1-59.5-162.1A119 119 0 0 1 266 139a156 156 0 0 0-11.8 10.9A112.3 112.3 0 0 0 415.5 306z"/>
</g>
</g>
</svg>
)
import { PakistanFlag } from "@/assets/icons/pakistanFlag"
export default function Example() {
return <PakistanFlag 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.