shadimage
flagcn
componentafsource: ok · hit

Afghanistan Flag

A typed Afghanistan flag component with no-crop 4:3 and 1:1 frames plus SVG, PNG, WebP, and JPEG support.

npx shadcn add "https://flagcn.dev/r/af.json"
free

No selection tags yet — empty means no evidence, not lack of support.

Dependencies

Bundle weight · light

Registry dependencies

@flagcn/flag

Files1 · source cached 10/9/2026, 2:41:49 PM

src/components/flags/countries/af.tsx
// SPDX-License-Identifier: MIT

import { Flag, type FlagProps } from "../flag"

export type AfghanistanFlagProps = Omit<FlagProps, "code">

export function AfghanistanFlag({ alt = "Afghanistan flag", ...props }: AfghanistanFlagProps) {
  return <Flag code="af" alt={alt} {...props} />
}

More from flagcn

Browse all components in this library →