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.

Package Framework Status
@sankyu/react-circle-flags React ✅ Stable
@sankyu/vue-circle-flags Vue 3 🚧 Beta
@sankyu/solid-circle-flags Solid.js 🚧 Beta
@sankyu/svelte-circle-flags Svelte 5 🚧 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

Framework-native ESM packages with tree-shakeable exports; React, Vue, and Solid also include CommonJS builds.

SSR Verified

First-response SVG rendering is continuously tested with Next.js App Router and Nuxt.

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

  • Framework-native ESM output
  • CommonJS compatibility for React, Vue, and Solid
  • 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: Vite 8…
  • Svelte: SvelteKit, Vite…

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.