How to use the Hong Kong icon
import { HongKongFlag } from "@/assets/icons/hongkongFlag"
export default function Example() {
return <HongKongFlag width="32px" height="32px" />
}Flags icon
Copy the Hong Kong 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/086f7e97d657358203916dbe84f61c2bccaa81eb/flags/4x3/hk.svg
// Asset license: flag-icons MIT. Country flags are national symbols; use respectfully and verify local requirements where applicable.
export const HongKongFlag = ({ 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="#EC1B2E" d="M0 0h640v480H0"/>
<path id="hk-a" fill="#fff" d="M346.3 103.1C267 98 230.6 201.9 305.6 240.3c-26-22.4-20.6-55.3-10.1-72.4l1.9 1.1c-13.8 23.5-11.2 52.7 11.1 71-12.7-12.3-9.5-39 12.1-48.9s23.6-39.3 16.4-49.1q-14.7-25.6 9.3-38.9M307.9 164l-4.7 7.4-1.8-8.6-8.6-2.3 7.8-4.3-.6-8.9 6.5 6.1 8.3-3.3-3.7 8.1 5.6 6.8z"/>
<use href="#hk-a" transform="rotate(72 312.5 243.5)"/>
<use href="#hk-a" transform="rotate(144 312.5 243.5)"/>
<use href="#hk-a" transform="rotate(216 312.5 243.5)"/>
<use href="#hk-a" transform="rotate(288 312.5 243.5)"/>
</svg>
)
import { HongKongFlag } from "@/assets/icons/hongkongFlag"
export default function Example() {
return <HongKongFlag 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.