{
  "id": "mobile-tab-bar",
  "name": "Mobile Tab Bar",
  "category": "navigation",
  "tags": [
    "mobile",
    "tab bar",
    "bottom navigation",
    "icons",
    "app"
  ],
  "description": "An app-style bottom navigation bar with icons, labels and an active pill.",
  "url": "https://copy-css.com/snippets/mobile-tab-bar",
  "markdown": "https://copy-css.com/snippets/mobile-tab-bar.md",
  "html": "<nav class=\"tab-bar\">\n  <a href=\"#\" aria-current=\"page\"><svg viewBox=\"0 0 24 24\"><path d=\"M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z\"/></svg>Home</a>\n  <a href=\"#\"><svg viewBox=\"0 0 24 24\"><circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/></svg>Search</a>\n  <a href=\"#\"><svg viewBox=\"0 0 24 24\"><path d=\"M19.5 12.6 12 20l-7.5-7.4A4.9 4.9 0 0 1 12 6a4.9 4.9 0 0 1 7.5 6.6z\"/></svg>Saved</a>\n  <a href=\"#\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21a8 8 0 0 1 16 0\"/></svg>Profile</a>\n</nav>",
  "css": ".tab-bar {\n  display: flex;\n  width: 280px;\n  padding: 8px;\n  border-radius: 20px;\n  background: #fff;\n  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);\n  font: 600 11px system-ui, sans-serif;\n}\n\n.tab-bar a {\n  display: flex;\n  flex: 1;\n  flex-direction: column;\n  align-items: center;\n  gap: 4px;\n  padding: 8px 0;\n  border-radius: 14px;\n  color: #94a3b8;\n  text-decoration: none;\n  transition: background 0.2s ease, color 0.2s ease;\n}\n\n.tab-bar svg {\n  width: 22px;\n  height: 22px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.tab-bar a:hover {\n  color: #4f46e5;\n}\n\n.tab-bar a[aria-current=\"page\"] {\n  background: #eef2ff;\n  color: #4f46e5;\n}",
  "features": [
    "transitions",
    "box shadows",
    "Flexbox"
  ],
  "customProperties": []
}
