Prism UI

Open Source

Heroes 13

About

A beautiful and interactive open-source project showcase component with animations and contributor statistics. Features: • Real-time GitHub stats • Animated star count • Contributor avatars with hover effects • Responsive layout • Custom content support • GitHub API integration • Error handling • Loading states • TypeScript support • SSR compatibility • Accessibility features Notes: • Built with Framer Motion for smooth animations • Server Component with client-side fallback • Automatic data fetching with caching • Responsive design using a mobile-first approach • TypeScript support with proper types • SSR compatible using the "use client" directive • Optimized performance with proper suspense boundaries • ARIA attributes for accessibility • Rate limit awareness with proper error handling

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Open Source to your project and fits it to your theme.

Code

How Open Source is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { OpenSource } from "@/components/blocks/open-source";

function OpenSourceBasic() {
  return (
    <OpenSource
      repository="codehagen/prismui"
      title="Proudly open-source"
      description="Our source code is available on GitHub - feel free to read, review, or contribute to it however you want!"
      buttonText="Star on GitHub"
      defaultStats={{
        stars: 300,
        contributors: [
          {
            login: "codehagen",
            avatar_url: "https://cdn.21st.dev/assets/mirror/ca/caab2bc9184d87cbabb0eb679f5072c0d86de17c18c095a06fbd056f5d431ccd.jpg",
          },
        ],
      }}
    />
  );
}

export { OpenSourceBasic };

Dependencies

More by Prism UI

View all
  • Display Cards

    Display Cards

    5.4K
  • Pricing

    Pricing

    3.8K
  • Expandable Card

    Expandable Card

    340
  • Floating Action Panel

    Floating Action Panel

    198
  • Hero Badge

    Hero Badge

    158
  • useExpandable

    useExpandable

    135
  • Logo Carousel

    Logo Carousel

    132
  • Icons

    Icons

    128

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero

    Hero

    1.2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    932
  • Editorial Collage Hero

    Editorial Collage Hero

    431
  • Glass Fold

    Glass Fold

    212
  • HeroSectionWithGradient

    HeroSectionWithGradient

    336
  • Aero Hero-3

    Aero Hero-3

    559