Forms & inputs / Dropdown lists & combo boxes
Minimal Country Selector
Thin lowercase 'united kingdom' text with a small chevron, in muted grey on black; opens a long list of countries.
Rebuilt from teenage.engineering in the Embossed Lab Monochrome style.
npx shadcn@latest add https://justyoink.it/r/embossed-lab-monochrome/blocks/country-select.json
Looks exactly like teenage.engineering: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/embossed-lab-monochrome/mine/country-select.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: countries (string[]), defaultValue, label (screen-reader label), onChange(value). Uses a native select so the dropdown opens on click while the chevron stays static.
components/country-select.tsx
import { useState } from "react"; export default function MinimalCountrySelector({ countries = ["united kingdom","united states","canada","australia","ireland","france","germany","italy","spain","netherlands","sweden","norway","denmark","japan"], defaultValue = "united kingdom", label = "country or region", onChange, }: { countries?: string[]; defaultValue?: string; label?: string; onChange?: (value: string) => void; }) { const [value, setValue] = useState(defaultValue); return ( <div className="w-full bg-canvas px-6 py-8 md:px-16"> <label className="relative inline-flex items-center gap-2 text-on-dark"> <span className="sr-only">{label}</span> <select value={value} onChange={(e) => { setValue(e.target.value); onChange?.(e.target.value); }} className="cursor-pointer appearance-none rounded-none border-0 bg-canvas py-1 pr-6 font-sans text-body-lg font-light lowercase text-on-dark/70 outline-none hover:text-on-dark focus-visible:underline focus-visible:ring-1 focus-visible:ring-on-dark/50" > {countries.map((c) => ( <option key={c} value={c} className="bg-canvas text-on-dark"> {c} </option> ))} </select> <svg aria-hidden="true" viewBox="0 0 12 12" className="pointer-events-none absolute right-0 top-1/2 mt-0.5 h-3 w-3 -translate-y-1/2 text-on-dark/60" fill="none" stroke="currentColor" strokeWidth="1" > <path d="M2 4.5 6 8.5l4-4" /> </svg> </label> </div> ); }import { useState } from "react"; export default function MinimalCountrySelector({ countries = ["united kingdom","united states","canada","australia","ireland","france","germany","italy","spain","netherlands","sweden","norway","denmark","japan"], defaultValue = "united kingdom", label = "country or region", onChange, }: { countries?: string[]; defaultValue?: string; label?: string; onChange?: (value: string) => void; }) { const [value, setValue] = useState(defaultValue); return ( <div className="w-full bg-background px-6 py-8 md:px-16"> <label className="relative inline-flex items-center gap-2 text-foreground"> <span className="sr-only">{label}</span> <select value={value} onChange={(e) => { setValue(e.target.value); onChange?.(e.target.value); }} className="cursor-pointer appearance-none rounded-none border-0 bg-background py-1 pr-6 font-mono text-embossed-body-lg font-light lowercase text-foreground/70 outline-none hover:text-foreground focus-visible:underline focus-visible:ring-1 focus-visible:ring-foreground/50" > {countries.map((c) => ( <option key={c} value={c} className="bg-background text-foreground"> {c} </option> ))} </select> <svg aria-hidden="true" viewBox="0 0 12 12" className="pointer-events-none absolute right-0 top-1/2 mt-0.5 h-3 w-3 -translate-y-1/2 text-foreground/60" fill="none" stroke="currentColor" strokeWidth="1" > <path d="M2 4.5 6 8.5l4-4" /> </svg> </label> </div> ); }
Quality checks
Automated, in a real browser · today- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.