Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { useState } from "react"import CountryPicker, { type Country } from "@/components/smoothui/country-picker/index"const countries: Country[] = [ { code: "US", name: "United States", dialCode: "+1" }, { code: "CA", name: "Canada", dialCode: "+1" }, { code: "GB", name: "United Kingdom", dialCode: "+44" }, { code: "DE", name: "Germany", dialCode: "+49" }, { code: "FR", name: "France", dialCode: "+33" }, { code: "JP", name: "Japan", dialCode: "+81" }, { code: "BR", name: "Brazil", dialCode: "+55" }, { code: "AU", name: "Australia", dialCode: "+61" },]export default function CountryPickerDemo() { const [open, setOpen] = useState(true) const [value, setValue] = useState("US") const selected = countries.find((country) => country.code === value) return ( <div className="w-full max-w-sm"> <CountryPicker countries={countries} onOpenChange={setOpen} onValueChange={setValue} open={open} trigger={selected?.name} value={value} /> </div> )}