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

@mbicycle/foundation-ui-kit

v1.2.1

Published

@mbicycle/foundation-ui-kit is a collection of reusable React components built with TypeScript, Vite, Tailwind CSS, and Storybook. It is designed to provide basic UI elements for the Foundation projects.

Downloads

23

Readme

@mbicycle/foundation-ui-kit

@mbicycle/foundation-ui-kit is a collection of reusable React components built with TypeScript, Vite, Tailwind CSS, and Storybook. It is designed to provide basic UI elements for the Foundation projects.

Installation

You can install @mbicycle/foundation-ui-kit via npm or yarn:

npm install @mbicycle/foundation-ui-kit
# or
yarn add @mbicycle/foundation-ui-kit

Important Note:

It's essential to add @mbicycle/foundation-ui-kit to your Tailwind CSS configuration file to ensure that Tailwind CSS classes from the library are included in your project's build.

Here's how you can do it:

  1. Open your Tailwind CSS configuration file (usually tailwind.config.js).
  2. Inside the content option, add the path to your node_modules/@mbicycle/foundation-ui-kit directory to ensure that Tailwind CSS scans and includes classes from @mbicycle/foundation-ui-kit:
content: [
  ...
'./node_modules/@mbicycle/foundation-ui-kit/**/*.{js,ts,jsx,tsx}'
]

Usage

import React from 'react';
import { Button, Input } from '@mbicycle/foundation-ui-kit';

const App = () => {
  return (
    <div>
      <Input placeholder="Enter your name" />
      <Button onClick={() => alert('Button clicked')}>Click me</Button>
    </div>
  );
};

export default App;

GitHub Actions Workflow

This project includes GitHub Actions workflows to automate certain tasks. Below are the available workflows and their purposes:

Build and Publish Storybook to GitHub Pages

This workflow automates the process of building and publishing Storybook to GitHub Pages whenever changes are pushed to the main branch or manually triggered. It uses the bitovi/github-actions-storybook-to-github-pages action. You can customize the workflow file .github/workflows/deploy-github-pages.yml as needed, adjusting the installation command, build command, and path to the Storybook static files.

Trigger

  • The workflow is triggered by either manual dispatch or whenever changes are pushed to the main branch.

Build and Publish to npm

This workflow automates the process of publishing components library to npm whenever a release is made. It ensures that latest changes are available to users who depend on the library. There is a configured GitHub secret NPM_AUTH_TOKEN with npm token for CI\CD. ou can customize the workflow file .github/workflows/npm-publish.yaml as needed.

Trigger

  • The workflow is triggered by either manual dispatch or a new release is published.

Storybook

@mbicycle/foundation-ui-kit comes with a Storybook environment to showcase and test its components. The Storybook is deployed here:https://mbicycle.github.io/foundation-ui-kit/

Contributing

Contributions to @mbicycle/foundation-ui-kit are welcome! If you find any bugs or have suggestions for new features, please open an issue on GitHub or submit a pull request.