{
  "id": "language-select",
  "name": "Language Select",
  "category": "forms",
  "tags": [
    "language",
    "locale",
    "select",
    "globe icon",
    "i18n",
    "footer"
  ],
  "description": "A compact language switcher: a native select with a globe icon on the left and a chevron on the right.",
  "url": "https://copy-css.com/snippets/language-select",
  "markdown": "https://copy-css.com/snippets/language-select.md",
  "html": "<label class=\"lang-select\">\n  <span class=\"lang-select-sr\">Language</span>\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\"/></svg>\n  <select name=\"lang\">\n    <option value=\"en\" selected>English</option>\n    <option value=\"de\">Deutsch</option>\n    <option value=\"es\">Español</option>\n    <option value=\"ja\">日本語</option>\n  </select>\n</label>",
  "css": ".lang-select {\n  position: relative;\n  display: inline-block;\n  font-family: system-ui, sans-serif;\n}\n\n.lang-select-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n\n.lang-select svg {\n  position: absolute;\n  top: 50%;\n  left: 12px;\n  width: 16px;\n  height: 16px;\n  fill: none;\n  stroke: #94a3b8;\n  stroke-width: 2;\n  transform: translateY(-50%);\n  pointer-events: none;\n}\n\n.lang-select select {\n  padding: 8px 32px 8px 36px;\n  border: 1px solid #334155;\n  border-radius: 999px;\n  background: #1e293b url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\") no-repeat right 12px center / 14px;\n  color: #e2e8f0;\n  font: 500 14px system-ui, sans-serif;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.lang-select select:hover {\n  border-color: #475569;\n}\n\n.lang-select select:focus-visible {\n  outline: 2px solid #38bdf8;\n  outline-offset: 2px;\n}\n\n.lang-select option {\n  background: #1e293b;\n  color: #e2e8f0;\n}",
  "features": [
    "transforms",
    "clip paths",
    "keyboard focus styles"
  ],
  "customProperties": []
}
