1 GitHub star = 1 new component.

Star the repo
Navigationtabsnavigationfloating

Floating Tab Bar

Elevated floating tab bar with soft backdrop shadow.

Live Preview

Usage

Copy and paste this code into your React component:

tsx
import { FloatingTabBar } from 'react-component-kit-ui/navigation';

<FloatingTabBar>Content</FloatingTabBar>

Manual Installation

If you are not using the npm package, create a new file and paste the following code: src/components/FloatingTabBar.tsx + FloatingTabBar.css:

FloatingTabBar.tsx
'use client';

import './FloatingTabBar.css';

/** FloatingTabBar โ€” ported from astro-component-kit. */
export interface FloatingTabBarProps {
}

export function FloatingTabBar({}: FloatingTabBarProps) {
  return (
    <>
      <div className="float-tabs" data-rk-437683="">
        <button className="active" data-rk-437683="">Discover</button>
        <button data-rk-437683="">Trending</button>
        <button data-rk-437683="">Following</button>
      </div>
    </>
  );
}

export default FloatingTabBar;
FloatingTabBar.css
/* FloatingTabBar โ€” ported from astro-component-kit (navigation/FloatingTabBar.astro) */

.float-tabs:where([data-rk-437683]) { display: flex; gap: 4px; background: rgba(0,0,0,0.4); padding: 5px; border-radius: 100px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); width: fit-content; margin: 2rem auto; }
.float-tabs:where([data-rk-437683]) button:where([data-rk-437683]) { background: none; border: none; padding: 0.6rem 1.4rem; color: #94a3b8; font-weight: 600; font-size: 0.85rem; border-radius: 100px; cursor: pointer; transition: 0.3s; }
.float-tabs:where([data-rk-437683]) button.active:where([data-rk-437683]) { background: #fff; color: #000; }

Quick Info

Category
Navigation
Filename
FloatingTabBar.tsx
Dependencies
None โ€” pure React + CSS
Tags
tabsnavigationfloating