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 🙏

© 2024 – Pkg Stats / Ryan Hefner

next-components-kit

v0.2.0

Published

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

Downloads

5

Readme

Next-Components-Kit

This package, next-components-kit, is a robust library of components designed for Next.js applications. It fully leverages the power and flexibility of Tailwind CSS.

Getting Started

To use this component library, you must first have a Next.js project. If you haven't already, you can bootstrap one with create-next-app.

Installation

First, add the next-components-kit to your project using npm:

npm install next-components-kit

Setting Up Tailwind CSS

If Tailwind CSS is not already configured for your project, follow these steps:

  1. Install Tailwind via npm:
npm install tailwindcss
  1. Initialize your tailwind.config.js file:
npx tailwindcss init
  1. Add the following line to the content array in your tailwind.config.js file:
module.exports = {
content: [
// add the following line
'./node_modules/next-components-kit/**/*.{js,ts,jsx,tsx,mdx}',
],
// ...
}

Setting Up TypeScript

Follow these steps to set up TypeScript in your project:

  1. Install TypeScript via npm:
npm install --save typescript @types/react @types/node
  1. Next.js will automatically detect TypeScript in your project and create a tsconfig.json file for you when you run next dev:
npx next dev

Usage

Now, you can start using components from the next-components-kit. Simply import them directly into your project files. Remember, each component is fully customizable with Tailwind CSS utility classes.

import { ComponentName } from 'next-components-kit'

KitButton Component

The KitButton is a versatile and customizable button component.

Importing

import { KitButton } from 'next-components-kit'

Basic Usage

export default function Home() {
return (
<div>
    <h1>Home</h1>
    <KitButton />
</div>
)
}

By default, the KitButton doesn't need any props and can be used as shown above.

Customizable Props

You can also customize the KitButton by passing various props to it:

<KitButton
ButtonText="Submit"
onClick={() => {}}
color="blue"
size="medium"
weight="medium"
radius="full"
shadow="medium"
/>

Here are the available options for each prop:

  • ButtonText (string, default: "Submit"): Sets the text of the button.
  • onClick (function, default: () => {}): Sets the function to be called on click.
  • color (string, default: "blue"): Sets the color of the button. Available options are "sky", "blue", "indigo", "slate", "red", "rose", "green", "teal", "yellow", "orange", "amber", "purple", "violet", "fuchsia", "gray", "neutral", "stone", "pink", "lime", "cyan", and "emerald".
  • size (string, default: "medium"): Sets the size of the button. Available options are "extraSmall", "small", "medium", "large", "extraLarge", and "extraExtraLarge".
  • weight (string, default: "medium"): Sets the font weight of the button. Available options are "thin", "extraLight", "light", "normal", "medium", "semibold", "bold", "extrabold", and "black".
  • radius (string, default: "full"): Sets the border radius of the button. Available options are "none", "small", "medium", "large", and "full".
  • shadow (string, default: "medium"): Sets the shadow of the button. Available options are "none", "small", "medium", "large", and "xl".

Future Plans

In the spirit of continuous growth and innovation, plans for the future development of next-components-kit involve transforming it into a fully-fledged UI library. The ultimate goal is to provide a comprehensive set of components that cater to a wide variety of UI needs, creating a tool that is both versatile and highly performant.

We are excited to be able to offer a robust set of features and functionalities that will enhance the user's web development experience. We aim to optimize for maximum performance and minimal load time, to ensure that the tools provided by next-components-kit not only meet but exceed your expectations in building modern, responsive web applications.

The project's evolution will be heavily driven by the feedback and needs of the user community. We are committed to implementing feedback and conducting user testing to constantly improve the library's efficiency and versatility.

Join us on this journey of creating a library that is more than just a collection of components but a complete toolkit for building beautiful, interactive, and high-performance web applications.

About

I am Zachary Walsh, an innovative Junior Software Developer offering expertise in both front-end and back-end development. I'm skilled in creating tailored software solutions and web designs to enhance operational productivity and improve user experiences. I am currently on the lookout for a challenging role in web development where I can leverage my skills and contribute to a forward-thinking organization.

You can reach me at (469) 216-5441 or [email protected]. You can also find me on Github and LinkedIn.

My skillset is wide and includes Web Development, Headless CMS, Mobile Development, UI design, Responsive Design, Firebase, Database Management, MongoDB, Web Hosting, App Distribution, and App Marketing and Sales.

In terms of programming languages, I am proficient in Swift, HTML, CSS, Tailwind CSS, Javascript, Typescript, React, Next.JS, React Native, Node.js, and Express.

Outside of work, I have a passion for backpacking, hiking, gaming, and cooking. These hobbies, in addition to my passion for coding and volunteering, help me to maintain a balanced lifestyle and fuel my creativity. I am committed to continuous learning and growth in both my professional and personal life.

Feedback and contributions to next-components-kit are always welcome!