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

uplift-ui

v5.0.3

Published

A React-based library that simplifies building responsive, modern, and accessible user interfaces.

Downloads

426

Readme

Uplift-UI

Uplift-UI is a versatile React component library that simplifies the development of modern web applications. It provides pre-built UI components that are customizable and easy to use. The library is built using React, TypeScript, and TailwindCSS, making it highly flexible for building responsive and visually appealing interfaces.

Features

  • Pre-built, customizable components
  • Typescript support for better type-checking and code maintainability
  • Uses TailwindCSS for styling flexibility
  • Modular and easy to integrate into any React project

Installation

To install Uplift-UI in your project, use npm or yarn:

npm install uplift-ui

or

yarn add uplift-ui

Usage

Alert Component

The Alert component is used to display important messages or notifications to the user. It supports multiple variants and sizes, making it flexible for different types of messages, such as success, warning, error, and info.

Importing the Alert Component

First, you need to import the Alert component in your file.

import { Alert } from 'uplift-ui';

Basic Example

Here’s a basic example of how to use the Alert component:

import React from 'react';
import { Alert } from 'uplift-ui';

const AlertDemo = () => {
  return (
    <div>
      <Alert variant="success" title="Success!">
        Your operation was completed successfully.
      </Alert>
    </div>
  );
};

export default AlertDemo;

Variants

The Alert component comes with several variants that help in differentiating between the types of messages. Below are the available variants:

  • default: Standard alert for neutral messages
  • success: Used to indicate success messages
  • error: Displays an error message
  • warning: Highlights warnings to the user
  • info: Provides informational messages

Example:

import React from 'react';
import { Alert } from 'uplift-ui';

const AlertDemo = () => {
  return (
    <div>
      <Alert variant="success" title="Success!">
        Operation was successful.
      </Alert>
      <Alert variant="error" title="Error!">
        Something went wrong.
      </Alert>
      <Alert variant="warning" title="Warning!">
        Be cautious about this action.
      </Alert>
      <Alert variant="info" title="Information!">
        This is an informational alert.
      </Alert>
    </div>
  );
};

export default AlertDemo;

Sizes

The Alert component supports different sizes for more flexibility in design. The available size options are:

  • default: The standard size
  • small: A smaller version of the alert
  • large: A larger version for more prominent messages

Example:

import React from 'react';
import { Alert } from 'uplift-ui';

const AlertDemo = () => {
  return (
    <div>
      <Alert size="small" variant="info" title=" This is a small alert." />
      <Alert size="default" variant="info" title="Default Alert" />
      <Alert size="large" variant="info" title="Large Alert" />
    </div>
  );
};

export default AlertDemo;

Props

| Prop Name | Type | Default | Description | | ---------- | --------- | --------- | -------------------------------------------------- | | variant | string | default | Sets the style of the alert (success, error, etc.) | | size | string | default | Sets the size of the alert (small, default, large) | | title | string | - | Sets the title of the alert | | children | ReactNode | - | The content/message of the alert |