Logo
  • Documentation
  • Components
  • New Component Request
GitHub
GitHub
    Treon Studio
    Discord
    Twitter

    Welcome

    Introduction
    Components
    Contributors
    Installation
    Roadmap
    Status - Beta

    Components

    Author TooltipCalendar Event CardCode BlockComponent Preview TooltipChat ComposerEmail Compose CardFile DropzoneFile PreviewGitHub Stars ButtonGoal CardHolo CardKnowledge GraphLink PreviewiOS Message BubblesModel SelectorNavbar MenuNested MenuNotification CardPricing CardRaised ButtonSearch Results TabsSlash Command DropdownTodo ItemTwitter CardWeather CardWorkflow Card

    Form Inputs

    Async Select
    Button
    Button Group
    Checkbox
    Color Picker
    Combobox
    Hierarchical Select
    Input
    Input Base
    Input O T P
    Mask Input
    Multi Select
    Number Input
    Radio Card Group
    Radio Group
    Range Slider
    Search Input
    Segmented Button
    Select
    Slider
    Switch
    Tag Input
    Textarea
    Voice Input

    Layout

    Aspect Ratio
    Card
    Card Icons
    Card Input
    Collapsible
    Divider
    Grid
    Island
    Panel
    Portal
    Resizable
    Scroll Area
    Scroll Shadow
    Separator
    Spacer
    Visually Hidden
    Visually Hidden Input

    Navigation

    Breadcrumb
    Context Menu
    Dropdown Menu
    Menu
    Navbar
    Pagination
    Sidebar
    Steps
    Tab Navigation
    Tabs

    Feedback

    Alert
    Banner
    Callout
    Circular Progress
    Empty State
    Error Message
    Error Page
    Loader Inline
    Loader Screen
    Progress
    Progress Bar
    Skeleton
    Spinner
    Status Dot
    Toast
    Toaster
    Tooltip
    Top Banner
    Tour

    Data Display

    Advanced Table
    Badge
    Badge Overflow
    Data Table
    Description List
    Listbox
    Table
    Tag
    Timeline
    Tree
    Virtualized

    Overlays

    Alert Dialog
    Dialog
    Dialog Stack
    Drawer
    Hover Card
    Popover

    Charts

    Area Chart
    Bar Chart
    Bar List
    Category Bar
    Combo Chart
    Comparison
    Conditional Bar Chart
    Contribution Graph
    Radar Chart

    Calendars

    Attendance Calendar
    Calendar
    Date Picker
    Date Time Field
    Full Calendar
    Gantt
    Mini Calendar
    Schedule
    Schedule Grid
    Time Field

    Typography

    Code
    Code Block
    Control Help
    Control Label
    Field
    Heading
    Kbd
    Label
    Link
    Markdown
    Rich Text Editor
    Snippet
    Text

    Media

    Avatar
    Avatar Group
    Deck
    Document Preview
    File List
    File Upload
    Glimpse
    Image
    Image Crop
    Image Zoom
    Photo Gallery
    Profile Picture
    Q R Code
    Q R Scanner

    User

    Discussion
    Rating
    Testimonial
    User
    User Card

    Interactive

    Accordion
    Action Bar
    Command
    Copy Button
    Cursor
    Emoji Picker
    Fade
    Inline Edit
    Kanban
    Marquee
    Orbit
    Ripple
    Sortable

    Specialized

    App Header
    Bulk Grade Input
    Credit Card
    Footer
    Level Picker
    Notification Card
    Password Strength
    Payment Method
    Pricing Table
    Sandbox
    Stat Card
    Ticker
    Usage Card
    Wizard
    DocsComponents

    Search Results Tabs

    A beautiful component for displaying search results with web pages, images, and news in an organized, interactive layout.

    Made with ❤️ byTreon Studio.Source code available onGitHub

    On This Page

    • Web Results Only
    • News Results
    • Usage
    • Features
    • Types
    • SearchResults
    • WebResult
    • ImageResult
    • NewsResult
    • Props
    • Examples
    • Web Results Only
    • Images Only
    • With Image Click Handler
    • News Only
    • Use Cases
    • Notes
    Website screenshot
    Meet Bungas
    Your open-source, proactive personal AI assistant with 200+ integrations. Bungas combines todos, goals, calendar, and email into one system, turns tasks into automated workflows, and completes work instead of just tracking it. Open-source and self-hostable with support for custom automations and multi-step workflows.

    Here is what i've found for Steve Jobs

    ikr

    Web Results Only

    News Results

    AI Assistants Transform Productivity in 2025

    New AI assistant platforms are revolutionizing how people manage their digital workflows, with open-source solutions leading the charge in innovation and user adoption.

    Score: 0.9511/8/2025

    Open Source Projects See Record Contributions

    GitHub reports a 40% increase in contributions to open-source projects, with AI and productivity tools seeing the most growth across all categories.

    Score: 0.8911/7/2025

    The Future of Personal AI: What's Next?

    Industry experts predict that personal AI assistants will become as ubiquitous as smartphones, with new capabilities emerging every quarter.

    Score: 0.8711/6/2025

    Wow, AI is evolving fast!

    Yeah, can't wait to see what's next 🚀

    Usage in Gaia

    Segments global search. Filters by messages, files, or actions instantly.

    Installation

    npx shadcn@latest add https://bungas.treonstudio.com/r/search-results-tabs.json

    Usage

    import { SearchResultsTabs } from "@/components/ui/search-results-tabs";
     
    export default function Example() {
      const searchResults = {
        web: [
          {
            title: "Example Site",
            url: "https://example.com",
            content: "Description of the website...",
          },
        ],
        images: [
          "https://images.unsplash.com/photo-1...",
          "https://images.unsplash.com/photo-2...",
        ],
        news: [
          {
            title: "News Article",
            url: "https://news.example.com",
            content: "Article content...",
            score: 0.95,
            date: "2025-11-10",
          },
        ],
      };
     
      return <SearchResultsTabs search_results={searchResults} />;
    }

    Features

    • Multiple Result Types: Display web results, images, and news articles
    • Interactive Images: Animated, rotatable image cards with lazy loading
    • Web Sources Popover: Compact button that expands to show all web results
    • News Cards: Styled news articles with scores and dates
    • Favicon Integration: Automatically fetches and displays site favicons
    • Image Validation: Only displays images that successfully load
    • Responsive Design: Adapts to different screen sizes
    • Smooth Animations: Powered by Framer Motion for polished interactions

    Types

    SearchResults

    interface SearchResults {
      web?: WebResult[];
      images?: string[] | ImageResult[];
      news?: NewsResult[];
    }

    WebResult

    interface WebResult {
      title: string;
      url: string;
      content: string;
      date?: string;
    }

    ImageResult

    interface ImageResult {
      url: string;
      title?: string;
    }

    NewsResult

    interface NewsResult {
      title: string;
      url: string;
      content: string;
      score?: number;
      date?: string;
    }

    Props

    PropTypeDefaultDescription
    search_resultsSearchResults-Object containing web, images, and news
    onImageClick(imageUrl: string) => voidundefinedCallback when an image is clicked

    Examples

    Web Results Only

    <SearchResultsTabs
      search_results={{
        web: [
          {
            title: "Example",
            url: "https://example.com",
            content: "Description",
          },
        ],
      }}
    />

    Images Only

    <SearchResultsTabs
      search_results={{
        images: [
          "https://example.com/image1.jpg",
          "https://example.com/image2.jpg",
        ],
      }}
    />

    With Image Click Handler

    const [selectedImage, setSelectedImage] = useState<string | null>(null);
     
    <SearchResultsTabs
      search_results={{ images: [...] }}
      onImageClick={setSelectedImage}
    />

    News Only

    <SearchResultsTabs
      search_results={{
        news: [
          {
            title: "Article Title",
            url: "https://news.example.com",
            content: "Article excerpt...",
            score: 0.95,
            date: "2025-11-10",
          },
        ],
      }}
    />

    Use Cases

    • AI Chat Interfaces: Display search results from AI assistants
    • Search Engines: Show web, image, and news results
    • Research Tools: Organize multiple types of search data
    • News Aggregators: Present news articles with scores
    • Image Search: Display image results with lazy loading
    • Knowledge Bases: Show related resources and articles

    Notes

    • Images are validated before display to ensure they load properly
    • Favicons are automatically fetched from Google's favicon service
    • The component handles empty result arrays gracefully
    • Images use Next.js Image component for optimization
    • Web results are displayed in a popover to save space
    • All animations are powered by Framer Motion
    • Supports both string arrays and ImageResult objects for images