# Mobile Tab Bar

> An app-style bottom navigation bar with icons, labels and an active pill.

- Category: [CSS Navigation](https://copy-css.com/category/navigation)
- Tags: mobile, tab bar, bottom navigation, icons, app
- Live preview: https://copy-css.com/snippets/mobile-tab-bar
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<nav class="tab-bar">
  <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>
  <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>
  <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>
  <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>
</nav>
```

## CSS

```css
.tab-bar {
  display: flex;
  width: 280px;
  padding: 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
  font: 600 11px system-ui, sans-serif;
}

.tab-bar a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border-radius: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-bar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-bar a:hover {
  color: #4f46e5;
}

.tab-bar a[aria-current="page"] {
  background: #eef2ff;
  color: #4f46e5;
}
```

## Notes

- This CSS Mobile Tab Bar is 41 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses transitions, box shadows and Flexbox.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
