How to use the South Africa icon
import { SouthAfricaFlag } from "@/assets/icons/southafricaFlag"
export default function Example() {
return <SouthAfricaFlag width="32px" height="32px" />
}Flags icon
Copy the South Africa 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/za.svg
// Asset license: flag-icons MIT. Country flags are national symbols; use respectfully and verify local requirements where applicable.
export const SouthAfricaFlag = ({ 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="za-a">
<path fill-opacity=".7" d="M-71.9 0h682.7v512H-71.9z"/>
</clipPath>
</defs>
<g clip-path="url(#za-a)" transform="translate(67.4)scale(.93748)">
<g fillRule="evenodd" strokeWidth="1pt">
<path fill="#000001" d="M-71.9 407.8V104.4L154 256.1z"/>
<path fill="#000c8a" d="m82.2 512.1 253.6-170.6H696V512H82.2z"/>
<path fill="#e1392d" d="M66 0h630v170.8H335.7S69.3-1.7 66 0"/>
<path fill="#ffb915" d="M-71.9 64v40.4L154 256-72 407.8v40.3l284.5-192z"/>
<path fill="#007847" d="M-71.9 64V0h95l301.2 204h371.8v104.2H324.3L23 512h-94.9v-63.9l284.4-192L-71.8 64z"/>
<path fill="#fff" d="M23 0h59.2l253.6 170.7H696V204H324.3zm0 512.1h59.2l253.6-170.6H696v-33.2H324.3L23 512z"/>
</g>
</g>
</svg>
)
import { SouthAfricaFlag } from "@/assets/icons/southafricaFlag"
export default function Example() {
return <SouthAfricaFlag 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.