JSXIcons.com

Flags icon

Ghana JSX Icon

Copy the Ghana icon as an optimized JSX SVG component for React, Next.js, dashboards, landing pages and Tailwind interfaces.

Browse all icons
ComponentGhanaFlag
FileghanaFlag.jsx
CategoryFlags

Copy-ready code

Ghana React JSX component

// Source: https://raw.githubusercontent.com/lipis/flag-icons/086f7e97d657358203916dbe84f61c2bccaa81eb/flags/4x3/gh.svg
// Asset license: flag-icons MIT. Country flags are national symbols; use respectfully and verify local requirements where applicable.
export const GhanaFlag = ({ 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">
    <path fill="#006b3f" d="M0 0h640v480H0z"/>
  <path fill="#fcd116" d="M0 0h640v320H0z"/>
  <path fill="#ce1126" d="M0 0h640v160H0z"/>
  <path fill="#000001" d="m320 160 52 160-136.1-98.9H404L268 320z"/>
  </svg>
)

How to use the Ghana icon

import { GhanaFlag } from "@/assets/icons/ghanaFlag"

export default function Example() {
  return <GhanaFlag width="32px" height="32px" />
}

Built for the web

Use it in your stack

This copy-ready component works in React and Next.js projects, and the SVG can be adapted for any interface.

ReactNext.jsJSXSVGFlags icons

Looking for a similar mark? Browse the related icons below or explore the full flags collection.

Related JSX icons

FAQ

Is the Ghana JSX icon free?

Yes. You can copy the JSX component and use it in React and Next.js projects.

Can I customize it?

Yes. Edit the SVG attributes or pass className, width, height and color props depending on the component.