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

windows-98-ui

v1.5.0

Published

React component library inspired by and using the css from [98.css](https://github.com/jdan/98.css) library for vanilla html

Downloads

283

Readme

windows-98-ui

React component library inspired by and using the css from 98.css library for vanilla html

View Components

You can view the components using this storybook [link].(https://bensimmers.github.io/windows-98-ui/)

Installation

npm install windows-98-ui

Local Development

git clone <repo>
cd windows-98-ui
npm install

Usage

windows-98-ui is a collection of React components that can be used to build a Windows 98 inspired UI. One cool feature about this library is that we can use the components as they are or extend them to create other components without having to worry about the styling or adding extra code.

e.g. we use a the as prop to override the default HTML tag of a component.

import { TextBox } from 'windows-98-ui';
<TextBox
  as="input"
  className="textbox-override"
  id="text17"
  label="Occupation"
  stacked={true}
  type="text"

/>

// we can override the default HTML tag of the TextBox component to use a different HTML tag or another React component.

<TextBox
  as="textarea"
  className="textbox-override"
  id="text17"
  label="Occupation"
  stacked={true}
  type="text"
/>

Button

The Button component is a simple button that can be used to trigger an action. The windows-98-ui library provides a Button component which extends the native button element. The Button component can be used to create a button with a label and a disabled state.

import { Button } from 'windows-98-ui';

// Base
<Button label="Button"  />

// Disabled
<Button label="Disabled" disabled={true} />

Dropdown

The Dropdown component is a simple dropdown that can be used to select an option from a list. The windows-98-ui library provides a Dropdown component which extends the native select element. The Dropdown component can be used to create a dropdown with a list of options.

import { Dropdown } from 'windows-98-ui';
<Dropdown
  options={[
    {
      label: '5 - Incredible!',
      value: '5',
    },
    {
      label: '2 - Not so great',
      value: '2',
    },
    {
      label: '1 - Unfortunate',
      value: '1',
    },
  ]}
/>;

// as prop is an override of the default HTML tag. Can also be another React component.
<Dropdown
  as="select" // or any other React component
  options={[
    {
      label: '5 - Incredible!',
      value: '5',
    },
    {
      label: '2 - Not so great',
      value: '2',
    },
    {
      label: '1 - Unfortunate',
      value: '1',
    },
  ]}
/>;

Slider

The Slider component is a simple slider that can be used to select a value from a range. The windows-98-ui library provides a Slider component which extends the native input element. The Slider component can be used to create a slider with a range of values.

import { Slider } from 'windows-98-ui';
<Slider
  id="range25" // reference for label
  label="Volume:"
  max="11"
  min="1"
  value="5"
/>;

TextBox

The TextBox component is a simple text box that can be used to input text. The windows-98-ui library provides a TextBox component which extends the native input element. The TextBox component can be used to create a text box with a placeholder and a value.

import { TextBox } from 'windows-98-ui';

<TextBox as="input" className="textbox-override" id="text17" label="Occupation" stacked={true} type="text" />;