JSXIcons.com

Flags icon

Morocco JSX Icon

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

Browse all icons
ComponentMoroccoFlag
FilemoroccoFlag.jsx
CategoryFlags

Copy-ready code

Morocco React JSX component

// Source: https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/ma.svg
// Asset license: flag-icons MIT. Country flags are national symbols; use respectfully and verify local requirements where applicable.
export const MoroccoFlag = ({ 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="#c1272d" d="M640 0H0v480h640z"/>
  <path fill="none" stroke="#006233" strokeWidth="11.7" d="M320 179.4 284.4 289l93.2-67.6H262.4l93.2 67.6z"/>
  </svg>
)

How to use the Morocco icon

import { MoroccoFlag } from "@/assets/icons/moroccoFlag"

export default function Example() {
  return <MoroccoFlag 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 Morocco 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.