Skip to content

Getting Started

Welcome to circle-flags-ui, a modern library for circular flag components supporting multiple frameworks.

This library provides 400+ circular SVG flag components with Full-TypeScript support & Tree-shaking Optimization.

Perfect for applications that need fast, crisp country flags without external image requests.

PackageFrameworkStatus
@sankyu/react-circle-flagsReact✅ Stable
@sankyu/vue-circle-flagsVue 3🚧 Beta
@sankyu/solid-circle-flagsSolid.js🚧 Beta

Follow these guides to master the library:

400+ Flags

Comprehensive collection of country, territory, subdivision, and organization flags.

TypeScript Ready

Full type definitions with autocomplete and type safety for all components.

Tree-shakable

ESM + CJS outputs with named exports for optimal bundle size.

SSR Compatible

Works seamlessly with Next.js, Nuxt.js, Remix, SolidStart, Astro, and other SSR frameworks.

Inline SVG

Flags are embedded as framework components (named imports & DynamicFlag), so they work offline with no external requests.

Standard Props

Named imports & DynamicFlag accept standard SVG props for easy customization.

Modern Architecture

  • ESM + CJS dual format
  • Tree-shaking friendly
  • Minified production builds

Developer Experience

  • Full TypeScript definitions
  • Consistent naming pattern
  • Standard SVG props

Framework Support

  • React: Next.js (App Router & Pages), Remix…
  • Vue: Nuxt.js, Vue Router…
  • Solid: SolidStart…
  • …and more!

Performance

  • Offline-first rendering with no external requests (named imports & DynamicFlag)
  • Tiny per-flag size (~1-2 KB)

Ready to dive in? Start with Installation to add the library to your project.