Components navigation

FloatingNav

A pill‑shaped navigation bar that floats at the top or bottom of the screen. It features rounded corners, a shadow, and requires an icon for each navigation item, making it ideal for modern, minimalist designs.

已更新 Mar 6, 2026

FloatingNav

A pill‑shaped navigation bar that floats at the top or bottom of the screen. It features rounded corners, a shadow, and requires an icon for each navigation item, making it ideal for modern, minimalist designs.

Use Cases

  • Modern landing pages with clean, minimalist design
  • Single-page apps with smooth scrolling sections
  • Portfolio sites emphasizing visual design
  • Apps where traditional navbar feels too heavy
  • Mobile‑first designs with bottom navigation preference

Properties

variant

Visual style variant. Type: string. Options: light, dark, glass. Default: glass. Tip: Visual Impact – light: White background with subtle border; dark: Dark background with white text; glass: Translucent with backdrop blur (RECOMMENDED).

position

Screen position for floating navbar. Only 'top' or 'bottom' – always horizontally centered. Type: string. Options: bottom, top. Default: bottom. Tip: Recommendations – desktop: Use 'top' for standard desktop layouts; mobile‑first: Use 'bottom' for mobile‑first apps (easier thumb reach).

items

Navigation items. Each MUST have an icon (icon‑first design). Keep to 3‑5 for best visual appearance. Type: array (minItems: 2, maxItems: 6). Tip: Recommendations – item-count: 3‑5 items for clean pill shape; icons: REQUIRED on every item – floating nav is icon‑first; label-length: 1 word per label for compact appearance.

blur

Enable backdrop blur effect. Most impactful with variant='glass'. Type: boolean. Default: true.

showCartIcon

Show shopping cart icon with badge count (for e-commerce). Type: boolean. Default: false.

cartTargetPage

Target page slug for cart icon click. Defaults to 'shop'. Type: string.

customCss

Custom CSS for styling. Type: string.

Best Practices

  • Limit to 3‑5 navigation items for clean pill shape
  • EVERY item MUST have an icon — this is icon‑first navigation
  • Use position='bottom' for mobile‑first apps, 'top' for desktop
  • Use variant='glass' for premium blur effect (recommended)
  • Keep labels short (1 word) for compact design
  • Works best with single‑page anchor navigation or small multi‑page apps
  • Add visibleToRoles on admin‑only items

标签

floatingnav navigation modern landing single-page apps portfolio sites

相关组件

准备好构建了吗?

使用 Qödiak 免费开始创建您的应用。

免费开始

相关文章

AnimatedGradient

Smooth animated gradient background for modern, premium aesthetics. Supports linear and radial gradients with configurable colors, animation speed, and intensity. GPU‑accelerated for smooth 60fps performance.

Button

Interactive button component that supports link navigation, page data source operations (record navigation, new record, mode switching), form submission, and custom JavaScript execution. Save/Delete actions must use a custom‑script with navigation. Two visual variants are available, and the button can be enabled or disabled dynamically based on data context.

Calendar

A full‑featured calendar component built with react‑big‑calendar. It can display events in month, week, day, or agenda views and includes navigation and view‑switching capabilities, making it suitable for any site that needs scheduling, event management, or date visualization.

Card

Feature card component with an icon, title, description, and entrance animations. Ideal for showcasing features, services, or benefits in grid layouts with animation support.

Checkbox

A checkbox group component that lets users select multiple options from a predefined list. It renders a set of checkboxes with individual labels and can be arranged vertically or horizontally.

CountdownTimer

Real-time countdown timer component that displays the time remaining until a target date/time. It updates every second, offers customizable formatting, and shows a completion message when the countdown ends. Suitable for any site type.