Command Palette

Search for a command to run...

Docs
Feature Slide Showcase

Feature Slide Showcase

A tabbed feature showcase component with image previews and detailed descriptions for highlighting product features.

|
auto
Open in

Installation

Usage

import FeatureSlideShowcase from "@/components/ruixen/feature-slide-showcase";
 
export default function App() {
  const features = [
    {
      id: "analytics",
      title: "Advanced Analytics",
      description:
        "Get deep insights into your data with powerful analytics tools and real-time reporting.",
      image: "/features/analytics.jpg",
      icon: "📊",
    },
    {
      id: "collaboration",
      title: "Team Collaboration",
      description:
        "Work together seamlessly with built-in collaboration tools and real-time updates.",
      image: "/features/collaboration.jpg",
      icon: "👥",
    },
    {
      id: "security",
      title: "Enterprise Security",
      description:
        "Bank-level security with end-to-end encryption and compliance certifications.",
      image: "/features/security.jpg",
      icon: "🔒",
    },
  ];
 
  return (
    <FeatureSlideShowcase
      title="Powerful Features"
      subtitle="Everything you need"
      features={features}
    />
  );
}

Props

FeatureSlideShowcase Props

PropTypeDefaultDescription
titlestring-Section title
subtitlestring-Section subtitle
featuresFeature[]RequiredArray of feature items

Feature Props

PropTypeDefaultDescription
idstring-Unique feature identifier
titlestring-Feature title
descriptionstring-Feature description
imagestring-Feature image URL
iconstring-Optional emoji or icon

Features

  • Tabbed Interface: Clean tab navigation
  • Image Previews: Large feature images
  • Smooth Transitions: Animated content changes
  • Responsive Design: Mobile-first layout
  • Icon Support: Emoji or icon display
  • Auto-height: Content adapts to size
  • Keyboard Navigation: Arrow key support
  • Dark Mode: Theme-aware styling

Tab Navigation

Features

  • Horizontal Layout: Tabs arranged horizontally
  • Active Indicator: Highlighted active tab
  • Hover Effects: Interactive feedback
  • Smooth Scrolling: Snap to tab on mobile
  • Keyboard Support: Arrow keys and Enter

Styling

  • Active Tab: Primary color highlight
  • Inactive Tabs: Muted appearance
  • Hover State: Subtle background change
  • Focus Ring: Clear focus indicator

Content Display

Image Section

  • Large Display: Prominent image showcase
  • Aspect Ratio: Maintained proportions
  • Lazy Loading: Efficient image loading
  • Smooth Fade: Transition between images

Text Section

  • Title: Large, bold heading
  • Icon: Optional emoji/icon display
  • Description: Detailed feature text
  • Spacing: Consistent vertical rhythm

Animation Details

Tab Switching

  • Fade In: Content fades in smoothly
  • Slide: Subtle slide animation
  • Duration: 300ms transition
  • Easing: Smooth ease-out

Image Transitions

  • Cross-fade: Smooth image transitions
  • Scale: Subtle zoom effect
  • Opacity: Fade in/out
  • Duration: 400ms

Customization

Custom Header

<FeatureSlideShowcase
  title="Why Choose Us"
  subtitle="Discover our unique advantages"
  features={features}
/>

With Icons

const features = [
  {
    id: "speed",
    title: "Lightning Fast",
    description: "Optimized for maximum performance",
    image: "/speed.jpg",
    icon: "⚡",
  },
  {
    id: "reliable",
    title: "99.9% Uptime",
    description: "Always available when you need it",
    image: "/reliable.jpg",
    icon: "✓",
  },
];

Without Icons

const features = [
  {
    id: "feature1",
    title: "Feature Name",
    description: "Feature description",
    image: "/feature.jpg",
    // No icon
  },
];

Long Descriptions

description: "Comprehensive analytics dashboard with real-time data visualization, custom reports, and advanced filtering options. Track key metrics, monitor performance, and make data-driven decisions with confidence.";

Styling

Container

  • Max Width: 1200px
  • Padding: Responsive padding
  • Margin: Centered with auto margins
  • Background: Theme background

Tab List

  • Layout: Horizontal flex
  • Spacing: Gap between tabs
  • Overflow: Scroll on mobile
  • Border: Bottom border

Content Area

  • Layout: Grid or flex
  • Image: Left or top (responsive)
  • Text: Right or bottom
  • Padding: Generous spacing

Use Cases

  • Product Features: Showcase product capabilities
  • Service Offerings: Display service details
  • Platform Benefits: Highlight platform advantages
  • Tool Comparisons: Compare different tools
  • Process Steps: Show workflow stages
  • Integration Showcase: Display integrations

Examples

SaaS Product Features

const saasFeatures = [
  {
    id: "dashboard",
    title: "Intuitive Dashboard",
    description:
      "Beautiful, easy-to-use dashboard with customizable widgets and real-time updates.",
    image: "/dashboard.jpg",
    icon: "📈",
  },
  {
    id: "api",
    title: "Powerful API",
    description:
      "RESTful API with comprehensive documentation and SDKs for popular languages.",
    image: "/api.jpg",
    icon: "🔌",
  },
  {
    id: "integrations",
    title: "Seamless Integrations",
    description:
      "Connect with your favorite tools and services with one-click integrations.",
    image: "/integrations.jpg",
    icon: "🔗",
  },
];

Platform Benefits

const benefits = [
  {
    id: "scalable",
    title: "Infinitely Scalable",
    description: "Grow from startup to enterprise without changing platforms.",
    image: "/scalable.jpg",
    icon: "📊",
  },
  {
    id: "secure",
    title: "Bank-Level Security",
    description: "SOC 2 Type II certified with end-to-end encryption.",
    image: "/secure.jpg",
    icon: "🔐",
  },
];

Process Steps

const steps = [
  {
    id: "step1",
    title: "Connect Your Data",
    description: "Import data from any source with our flexible connectors.",
    image: "/connect.jpg",
    icon: "1️⃣",
  },
  {
    id: "step2",
    title: "Transform & Analyze",
    description:
      "Use powerful tools to clean, transform, and analyze your data.",
    image: "/transform.jpg",
    icon: "2️⃣",
  },
  {
    id: "step3",
    title: "Share Insights",
    description:
      "Create beautiful reports and dashboards to share with your team.",
    image: "/share.jpg",
    icon: "3️⃣",
  },
];

Performance

  • Lazy Loading: Images load on demand
  • Optimized Images: Next.js Image component
  • Efficient Transitions: CSS-based animations
  • Minimal Re-renders: Optimized state management
  • Code Splitting: Tab content loaded efficiently

Accessibility

  • Keyboard Navigation: Full keyboard support
  • Screen Readers: Descriptive ARIA labels
  • Focus Management: Clear focus indicators
  • Tab Roles: Proper ARIA tab roles
  • Color Contrast: WCAG AA compliant
  • Touch Targets: Minimum 44x44px
  • Semantic HTML: Proper heading hierarchy