sidiora-labs

Country Select

Component

About

A flag-pill trigger that opens a searchable dialog for picking a country or region, with locale auto-detection.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Country Select to your project and fits it to your theme.

Code

How Country Select is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import * as React from "react";

import { CountrySelect } from "@/components/ui/country-select";

export default function CountrySelectDemo() {
  const [region, setRegion] = React.useState<string | undefined>(undefined);

  return (
    <div className="flex min-h-[320px] w-full flex-col items-center justify-center gap-3 bg-background p-10 text-foreground">
      <CountrySelect onValueChange={(code) => setRegion(code)} showName />
      {region && (
        <p className="text-sm text-muted-foreground">Selected: {region}</p>
      )}
    </div>
  );
}

Dependencies

More by sidiora-labs

View all
  • Wave Slider

    Wave Slider

    4
  • Preview Rail

    Preview Rail

    3
  • Motion Breadcrumb

    Motion Breadcrumb

    2
  • Expandable Tabs

    Expandable Tabs

    2
  • Not Found

    Not Found

    1
  • Swap

    Swap

    1
  • Swipeable List

    Swipeable List

    1
  • Morphing Modal

    Morphing Modal

    1