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

@ajk-ui/section

v0.3.2

Published

A versatile section component for React applications with multiple layout options and grid support.

Readme

@ajk-ui/section

A versatile section component for React applications with multiple layout options and grid support.

Installation

npm install @ajk-ui/section
# or
yarn add @ajk-ui/section
# or
pnpm add @ajk-ui/section

Usage

import { Section } from "@ajk-ui/section";

function MyComponent() {
  return (
    <Section
      variant="feature"
      layout="grid"
      title="Our Features"
      subtitle="Discover what makes us special"
      gridCols={3}
    >
      {/* Your content here */}
    </Section>
  );
}

Features

  • Multiple variants (feature, highlight, alternate, cta)
  • Various layouts (grid, split, centered)
  • Background image support
  • Responsive grid system
  • Theme integration
  • TypeScript support
  • Customizable spacing and padding

Props

| Prop | Type | Default | Description | | --------------- | ------------------------------------------------ | --------- | ------------------------------ | | variant | 'feature' | 'highlight' | 'alternate' | 'cta' | 'feature' | Section style variant | | layout | 'grid' | 'split' | 'centered' | 'grid' | Layout type | | title | string | undefined | Section title | | subtitle | string | undefined | Section subtitle | | gridCols | number | 3 | Number of grid columns | | gap | 'sm' | 'md' | 'lg' | 'md' | Grid gap size | | backgroundImage | string | undefined | Background image URL | | overlay | boolean | false | Add dark overlay to background | | className | string | undefined | Additional CSS classes | | children | ReactNode | required | Section content |

Examples

Feature Grid Section

<Section
  variant="feature"
  layout="grid"
  title="Our Services"
  subtitle="What we offer"
  gridCols={3}
  gap="lg"
>
  <Card title="Service 1" />
  <Card title="Service 2" />
  <Card title="Service 3" />
</Section>

Split Layout Section

<Section
  variant="highlight"
  layout="split"
  title="About Us"
  subtitle="Our Story"
  backgroundImage="/about-bg.jpg"
  overlay
>
  <div className="flex flex-col gap-4">
    <p>Content goes here...</p>
    <Button variant="primary">Learn More</Button>
  </div>
</Section>

CTA Section

<Section
  variant="cta"
  layout="centered"
  title="Get Started"
  subtitle="Join us today"
>
  <Button variant="primary">Sign Up Now</Button>
</Section>

Grid System

The section component includes a responsive grid system:

// 3 columns on desktop, 2 on tablet, 1 on mobile
<Section
  layout="grid"
  gridCols={3}
  className="grid-cols-1 md:grid-cols-2 lg:grid-cols-3"
>
  {/* Grid items */}
</Section>

Customization

Customize section styles using Tailwind CSS:

<Section
  className="bg-gradient-to-r from-blue-500 to-purple-500 text-white"
  variant="feature"
  layout="grid"
>
  {/* Content */}
</Section>

Version History

Current version: 0.2.2

See Changelog for details about changes and updates.

License

MIT © [Your Name]