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

triponents

v0.1.0

Published

React component library based on triangles, polygons, with a retro future vibe.

Downloads

6

Readme

Cyber UI Components

A collection of cyberpunk-themed React components for building futuristic user interfaces. These components are designed to give your application a unique, neon-lit aesthetic inspired by the cyberpunk genre.

Installation

To install the Cyber UI Components package along with its dependencies, run the following command:

npm install cyber-ui-components lucide-react framer-motion react-icons tailwindcss

or if you're using yarn:

yarn add cyber-ui-components lucide-react framer-motion react-icons tailwindcss

Cyber UI relies on lucide-react, framer-motion, react-icons, and Tailwind CSS, so you'll need to install these packages for Cyber UI to be fully functional.

After installation, make sure to set up Tailwind CSS in your project by following the official Tailwind CSS installation guide.

Components

1. TrizoidAccordion

An accordion component with a unique trizoid (triangular-trapezoid) design.

Usage:

import { TrizoidAccordion } from 'cyber-ui-components';

const items = [
  { title: 'Section 1', content: 'Content for section 1' },
  { title: 'Section 2', content: 'Content for section 2' },
];

function MyComponent() {
  return <TrizoidAccordion items={items} />;
}

Props:

  • items: An array of AccordionItem objects, each containing a title and content.

2. TransformingButton

A button component that transforms between triangular and trapezoidal shapes, creating a dynamic and futuristic look.

Usage:

import { TransformingButton } from 'cyber-ui-components';

function MyComponent() {
  return <TransformingButton leftInput="Click me" rightInput="▼" />;
}

Props:

  • leftInput: The text to display on the left side of the button.
  • rightInput: The text to display on the right side of the button.

3. Dropdown

A stylish dropdown component with a cyberpunk-inspired design, featuring neon colors and smooth transitions.

Usage:

import { Dropdown } from 'cyber-ui-components';

const options = ['Option 1', 'Option 2', 'Option 3'];

function MyComponent() {
  return (
    <Dropdown
      label="Select an option"
      options={options}
      onSelect={(selected) => console.log(selected)}
    />
  );
}

Props:

  • label: The label for the dropdown.
  • options: An array of strings representing the selectable options.
  • onSelect: A callback function that receives the selected option.

4. Button

A futuristic button component with a unique shape and hover effects, perfect for call-to-action elements.

Usage:

import { Button } from 'cyber-ui-components';

function MyComponent() {
  return <Button text="Click me" />;
}

Props:

  • text: The text to display on the button.

5. TextInput

A customizable text input component with a cyberpunk aesthetic, featuring dynamic resizing and a shaking animation effect.

Usage:

import { TextInput } from 'cyber-ui-components';

function MyComponent() {
  return (
    <TextInput
      placeholder="Enter text"
      onChange={(value) => console.log(value)}
      size="large"
    />
  );
}

Props:

  • placeholder: The placeholder text for the input.
  • value: The current value of the input.
  • disabled: Whether the input is disabled.
  • onChange: A callback function that receives the new value when the input changes.
  • size: The size of the input, either "small" or "large".

Customization

All components use Tailwind CSS classes for styling. You can customize the appearance by overriding these classes or by providing your own CSS. The components use a cyberpunk-inspired color palette, including:

  • neonSunset: A vibrant orange color
  • electricDream: A bright blue color
  • cyberAqua: A neon aqua color
  • midnightAbyss: A deep, dark background color
  • digitalVoid: A slightly lighter background color

You can override these colors in your Tailwind configuration to match your desired aesthetic.

Browser Compatibility

Cyber UI Components are designed to work with modern browsers that support ES6+ and CSS3. For optimal visual effects, we recommend using the latest versions of Chrome, Firefox, Safari, or Edge.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

Changelog

Version 1.0.0

  • Initial release with TrizoidAccordion, TransformingButton, Dropdown, Button, and TextInput components.