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

ripik-ui-test

v0.0.13

Published

A collection of reusable UI components built with React and Storybook, including a Tailwind CSS plugin.

Downloads

7

Readme

Ripik UI

A collection of reusable UI components built with React and Storybook, including a Tailwind CSS plugin.

Table of Contents

Installation

To install the component library, you can use npm or yarn:

npm install ripik-ui-test

Setup

This library includes a Tailwind CSS plugin named ripikComponentLibraryConfig. You'll need to add this plugin to your tailwind.config.js file.

Here’s an example of how to do it in TypeScript:

/** @type {import('tailwindcss').Config} */
import tailwindAnimate from "tailwindcss-animate";
import { ripikComponentPlugin } from "ripik-ui-test";

export default {
  darkMode: ["class"],
  content: [
    "./pages/**/*.{ts,tsx}",
    "./components/**/*.{ts,tsx}",
    "./app/**/*.{ts,tsx}",
    "./src/**/*.{ts,tsx}",
  ],
  prefix: "",
  plugins: [tailwindAnimate, ripikComponentPlugin],
};

Ensure that the path to ripikComponentPlugin is correct and is being imported from the ripik-ui-test package.

CSS File

You’ll also need to include the index.css file from the library. You can copy the index.css file located in the public folder of the project to your own public folder.

Here’s an example of how to include it:

/* In your project's main CSS file */
@import "ripik-ui-test/dist/index.css";

Ensure that the path is correct based on where you place the index.css file in your project.

Usage

Button

The Button component is a versatile component that can be used in various scenarios. Here’s how you can use it:

Import

import { Button } from "ripik-ui-test";

Basic Usage

<Button variant="filled">Click Me</Button>

Variants

The Button component supports the following variants:

  • filled
  • secondary
  • text
  • outline
  • caution
  • caution_outlined

Example:

<Button variant="caution">Cancel</Button>
<Button variant="caution_outlined">Cancel</Button>

Sizes

The Button component comes in three sizes:

  • sm
  • md
  • lg

Example:

<Button size="sm">Small Button</Button>
<Button size="md">Medium Button</Button>
<Button size="lg">Large Button</Button>

Icons

You can include icons within your buttons using the startIcon and endIcon props:

import { EnvelopeSimple } from "@phosphor-icons/react";

<Button variant="filled" startIcon={<EnvelopeSimple size={24} />}>
  Login with Email
</Button>;

Disabled State

To disable the button:

<Button variant="filled" disabled>
  Disabled Button
</Button>

Storybook

To see the components in playground, you can clone this repo and run Storybook:

git clone https://github.com/ripiktech/ripik-component-library
npm i
npm run storybook

This will start Storybook on a local server, where you can explore and interact with the components.

Contributing

We welcome contributions! If you have suggestions or improvements, please open an issue or a pull request.

Development

  1. Clone the repository
  2. Install dependencies: npm install or yarn install
  3. Start the development server: npm run storybook or yarn storybook

License

This project is private for the moment.