npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@nexcomponent/lib

v2.7.0

Published

React UI Library - Fixed import and CSS issues

Readme

@nexcomponent/lib

A modern, enterprise-grade React UI library with glassmorphic design, smooth animations, and TypeScript support.

🚀 Features

  • Glassmorphic Design: Beautiful glass effects with backdrop blur
  • Smooth Animations: Powered by Framer Motion
  • TypeScript First: Full type safety with IntelliSense support
  • Enterprise Ready: Professional components for business applications
  • Theme Support: Light and black glass themes
  • Accessibility: WCAG compliant with keyboard navigation
  • Responsive: Mobile-first design approach

📦 Installation

npm install @nexcomponent/lib
# or
yarn add @nexcomponent/lib

🎨 Usage

Basic Setup

import { NexNav, NexFooter } from '@nexcomponent/lib';
import '@nexcomponent/lib/style.css';

function App() {
  return (
    <div>
      <NexNav
        logoSrc="/logo.svg"
        displayName="MyApp"
        homeButtonHandler={() => navigate('/')}
        navItems={[
          { label: "Dashboard", onClick: () => navigate('/dashboard') },
          { label: "Products", onClick: () => navigate('/products') }
        ]}
        isAuthenticated={true}
        user={{
          name: "John Doe",
          avatarUrl: "/avatar.jpg",
          role: "Admin"
        }}
        onLogout={() => logout()}
        languageOptions={[
          { code: "en", name: "English", flag: "🇺🇸" },
          { code: "es", name: "Español", flag: "🇪🇸" }
        ]}
        theme="black-glass"
      />
      
      {/* Your app content */}
      
      <NexFooter
        logoSrc="/logo.svg"
        displayName="MyApp"
        tagline="Building amazing experiences"
        sections={[
          {
            title: "Product",
            links: [
              { label: "Features", href: "/features" },
              { label: "Pricing", href: "/pricing" }
            ]
          },
          {
            title: "Company",
            links: [
              { label: "About", href: "/about" },
              { label: "Contact", href: "/contact" }
            ]
          }
        ]}
        newsletter={{
          enabled: true,
          placeholder: "Enter your email",
          onSubmit: (email) => subscribe(email)
        }}
        socials={[
          { platform: "twitter", url: "https://twitter.com/myapp" },
          { platform: "linkedin", url: "https://linkedin.com/company/myapp" }
        ]}
        theme="black-glass"
      />
    </div>
  );
}

Available Components

Navigation

  • NexNav: Comprehensive navigation with authentication, language switching, and user management

Layout

  • NexFooter: Professional footer with branding, sections, newsletter, and social links
  • NexCard: Lead generation cards with glassmorphic effects
  • NexCarousel: Smooth image carousel with auto-play and navigation

Forms

  • NexInput: Professional input fields with validation states
  • NexButton: Animated buttons with loading states

Feedback

  • NexAlert: Notification alerts with different variants
  • NexLoader: Loading indicators and spinners
  • NexModal: Modal dialogs with backdrop blur

Utilities

  • NexSeparator: Visual separators and dividers
  • NexCopyToClipboard: Copy-to-clipboard functionality
  • NexVersion: Version display component

🎯 TypeScript Support

All components include comprehensive TypeScript definitions with JSDoc documentation. You'll get:

  • IntelliSense: Full autocomplete and property suggestions
  • Type Safety: Compile-time error checking
  • Hover Documentation: Detailed prop descriptions and examples
  • Example Code: Usage examples in tooltips
// Hover over NexNav to see all available props
<NexNav
  // TypeScript will show you all available properties
  // with descriptions and examples
/>

🎨 Themes

Light Theme (Default)

Clean, professional design with subtle shadows and borders.

Black Glass Theme

Iconic black glass effect with backdrop blur and transparency.

<NexNav theme="black-glass" />
<NexFooter theme="black-glass" />

📱 Responsive Design

All components are mobile-first and responsive:

  • Mobile: Optimized for touch interactions
  • Tablet: Adaptive layouts and sizing
  • Desktop: Full feature set with hover effects

♿ Accessibility

  • Keyboard Navigation: Full keyboard support
  • Screen Readers: ARIA labels and semantic HTML
  • Focus Management: Proper focus indicators
  • Reduced Motion: Respects user preferences

🔧 Customization

CSS Variables

Customize the design system using CSS variables:

:root {
  --nex-primary-color: #007bff;
  --nex-signature: #ff1801;
  --nex-radius-lg: 12px;
  --nex-spacing-md: 16px;
}

Theme Overrides

Override specific component styles:

.nex-nav {
  --nex-nav-background: rgba(255, 255, 255, 0.9);
  --nex-nav-border: 1px solid rgba(0, 0, 0, 0.1);
}

📚 API Reference

NexNav Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | logoSrc | string | No | URL to the logo image | | displayName | string | Yes | Application display name | | homeButtonHandler | () => void | Yes | Handler for home button clicks | | navItems | NavItem[] | Yes | Array of navigation items | | isAuthenticated | boolean | Yes | Whether the user is authenticated | | user | User | No | User information (required when authenticated) | | languageOptions | LanguageOption[] | Yes | Available language options | | theme | 'light' \| 'auto' \| 'black-glass' | No | Theme variant |

NexFooter Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | logoSrc | string | No | URL to the logo image | | displayName | string | Yes | Application display name | | tagline | string | No | Company tagline or description | | sections | FooterSection[] | No | Footer navigation sections | | newsletter | NewsletterConfig | No | Newsletter signup configuration | | socials | SocialLink[] | No | Social media links | | theme | 'light' \| 'auto' \| 'black-glass' | No | Theme variant |

🚀 Getting Started

  1. Install the package:

    npm install @nexcomponent/lib
  2. Import the CSS:

    import '@nexcomponent/lib/style.css';
  3. Use components:

    import { NexNav, NexFooter } from '@nexcomponent/lib';
  4. Enjoy TypeScript support:

    • Hover over components to see prop descriptions
    • Get autocomplete for all properties
    • See usage examples in tooltips

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

ISC License - see LICENSE file for details.

🆘 Support