JSXIcons.com

Flags icon

Puerto Rico JSX Icon

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

Browse all icons
ComponentPuertoRicoFlag
FilepuertoricoFlag.jsx
CategoryFlags

Copy-ready code

Puerto Rico React JSX component

// Source: https://raw.githubusercontent.com/lipis/flag-icons/086f7e97d657358203916dbe84f61c2bccaa81eb/flags/4x3/pr.svg
// Asset license: flag-icons MIT. Country flags are national symbols; use respectfully and verify local requirements where applicable.
export const PuertoRicoFlag = ({ 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="pr-a">
      <path fillOpacity=".7" d="M-37.3 0h682.7v512H-37.3z"/>
    </clipPath>
  </defs>
  <g fillRule="evenodd" clipPath="url(#pr-a)" transform="translate(35)scale(.9375)">
    <path fill="#ed0000" d="M-37.3 0h768v512h-768z"/>
    <path fill="#fff" d="M-37.3 102.4h768v102.4h-768zm0 204.8h768v102.4h-768z"/>
    <path fill="#0050f0" d="m-37.3 0 440.7 255.7L-37.3 511z"/>
    <path fill="#fff" d="M156.4 325.5 109 290l-47.2 35.8 17.6-58.1-47.2-36 58.3-.4 18.1-58 18.5 57.8 58.3.1-46.9 36.3z"/>
  </g>
  </svg>
)

How to use the Puerto Rico icon

import { PuertoRicoFlag } from "@/assets/icons/puertoricoFlag"

export default function Example() {
  return <PuertoRicoFlag 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 Puerto Rico 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.