Burkina Faso Flag

BurkinaFasoFlag is a typed React component that renders the Burkina Faso national flag from the flagcn flag system. It wraps the shared Flag component with code fixed to "bf" and a default Burkina Faso alt text.

componentflagscountriesinternationalizationregistry-item.json
Burkina Faso 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/bf

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

Usage

usage.tsx
import { BurkinaFasoFlag } from "@/components/flags/countries/bf"export function Example() {  return <BurkinaFasoFlag />}
  • Showing Burkina Faso as a country in a country picker, select list, or search result
  • Displaying a nation's flag next to a profile, team, event, or shipping location tied to Burkina Faso
  • Building internationalization or localization UIs that need a consistent, typed flag asset
  • Rendering a flag in a fixed-size badge or avatar slot where a 4:3 or 1:1 frame is required

Examples

Default flag in a country list

Renders the flag with the default alt text "Burkina Faso flag".

default-flag-in-a-country-list.tsx
import { BurkinaFasoFlag } from "@/components/flags/countries/bf"export function CountryRow() {  return (    <div className="flex items-center gap-2">      <BurkinaFasoFlag />      <span>Burkina Faso</span>    </div>  )}

Custom alt text in a profile header

Overrides the default alt text when the flag conveys context-specific meaning.

custom-alt-text-in-a-profile-header.tsx
import { BurkinaFasoFlag } from "@/components/flags/countries/bf"export function ProfileHeader() {  return (    <header className="flex items-center gap-3">      <BurkinaFasoFlag alt="Nationality: Burkina Faso" />      <h1>Amina Ouédraogo</h1>    </header>  )}

Decorative flag beside a label

Passes alt as an empty string so screen readers skip the decorative image, since the country name is already visible text.

decorative-flag-beside-a-label.tsx
import { BurkinaFasoFlag } from "@/components/flags/countries/bf"export function ShippingOption() {  return (    <label className="flex items-center gap-2">      <input type="radio" name="country" value="bf" />      <BurkinaFasoFlag alt="" />      Burkina Faso    </label>  )}

API reference

PropTypeDefaultDescription
altstring"Burkina Faso flag"Accessible text for the flag image. Defaults to "Burkina Faso flag". Pass an empty string for purely decorative use.
...props (FlagProps without code)Omit<FlagProps, "code">—All remaining props from FlagProps in ../flag are forwarded to Flag. The code prop is omitted and fixed to "bf". The exact fields (such as ratio or format) are defined in src/components/flags/flag.tsx, which is not included in this item's source, so they are not listed here.

Accessibility

  • The default alt text "Burkina Faso flag" is announced by screen readers when the flag conveys information on its own.
  • Pass alt="" when the country name is already visible as text, so the flag is treated as decorative and not read twice.
  • Override alt with a context-specific phrase when the flag stands in for a nationality or location in a sentence.
  • The flag is a static image with no motion, so it does not affect reduced-motion preferences.

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 "Burkina Faso Flag" component (flagcn/bf) from its shadcn registry.1. Install it with: npx shadcn@latest add @flagcn/bf2. 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 (FlagProps without code).Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { BurkinaFasoFlag } from "@/components/flags/countries/bf"export function Example() {  return <BurkinaFasoFlag />}```

Files & dependencies

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

Looks similar, elsewhere