← Demo & docs

Examples

htmx – swap, morph (idiomorph), cloned rows, country-change trigger Without a framework – themes with --cs-* variables, dark theme, Greek names <select> – progressive enhancement, your own option texts, phone codes JavaScript API – options, setValue, getCountry, setCountries, destroy shipping.json – a custom list for data-src

Each page loads ../../dist/country-select.js; in your site use the CDN or npm build.