Anguilla Flag

AnguillaFlag is a typed wrapper around the shared Flag component that renders the flag of Anguilla with a default alt text of "Anguilla flag". It supports no-crop 4:3 and 1:1 frames and SVG, PNG, WebP, and JPEG formats through the underlying Flag component.

componentflagscountriesinternationalizationregistry-item.json
Anguilla Flag
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @flagcn/ai

Requires @flagcn in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { AnguillaFlag } from "@/components/flags/countries/ai"export function Example() {  return <AnguillaFlag />}
  • Showing Anguilla's flag next to a country name in a country picker, address form, or phone-number selector.
  • Displaying a flag in a travel, sports, or event listing where Anguilla is a participant.
  • Building an internationalization or localization UI that needs a consistent, typed flag per country.
  • Rendering a square or 4:3 flag thumbnail in a table, card, or list without manual image handling.

Examples

Country picker option

Renders the flag as a small square icon beside the country name in a select list option.

country-picker-option.tsx
import { AnguillaFlag } from "@/components/flags/countries/ai"export function CountryOption() {  return (    <div className="flex items-center gap-2">      <AnguillaFlag className="size-5" />      <span>Anguilla</span>    </div>  )}

Custom alt text

Overrides the default alt text for a context where the flag is paired with localized copy.

custom-alt-text.tsx
import { AnguillaFlag } from "@/components/flags/countries/ai"export function LocalizedFlag() {  return <AnguillaFlag alt="Flag of Anguilla" />}

Decorative flag next to visible label

When the country name is already visible, the flag can be hidden from assistive technology by passing an empty alt, if the underlying Flag component supports that behavior.

decorative-flag-next-to-visible-label.tsx
import { AnguillaFlag } from "@/components/flags/countries/ai"export function DecorativeFlag() {  return (    <p className="flex items-center gap-2">      <AnguillaFlag alt="" className="size-4" />      Anguilla    </p>  )}

API reference

PropTypeDefaultDescription
altstring"Anguilla flag"Accessible text for the flag image. Defaults to "Anguilla flag" and is forwarded to the Flag component.
...propsOmit<FlagProps, "code">—All remaining props from FlagProps (defined in the @flagcn/flag registry item) except code, which is fixed to "ai". The exact list is defined by the flag dependency, not by this file.

Accessibility

  • The default alt text "Anguilla flag" gives screen readers a meaningful name when the flag conveys the country on its own.
  • If the country name is visible in adjacent text, pass alt="" so the flag is treated as decorative and not announced twice.
  • Because the component is a thin wrapper, accessibility behavior such as role and alt handling is determined by the underlying Flag component.
  • Avoid relying on the flag alone to identify the country in forms; pair it with a text label.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Anguilla Flag" component (flagcn/ai) from its shadcn registry.1. Install it with: npx shadcn@latest add @flagcn/ai2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: alt, ...props.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { AnguillaFlag } from "@/components/flags/countries/ai"export function Example() {  return <AnguillaFlag />}```

Files & dependencies

  • src/components/flags/countries/ai.tsx→ @components/flags/countries/ai.tsx
registryDependencies@flagcn/flag

Looks similar, elsewhere