Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@naturalselectionlabs/hui

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalselectionlabs/hui

The shared react web component library for the whole organization.

  • 0.0.5
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

Overview

The shared react web component library for the whole organization.

Tech stack

If you are not familiar with the items below, please at least go over their basic tutorial.

  • typescript
  • tailwindcss
  • emotion
  • vitest
  • storybook

Setup

npm i

You might want to install the recommended extensions in this file.

Development

All components should live in this folder.

npm start

To debug the components, you can create routes in this file to quick debug a component, and visit the home page to see the list of component, check playground example for more details.

Or you can use storybook to better test and document components, check the example stories for more details:

npm run storybook

To run unit tests:

npm test

To update the vitest snapshots:

npx vitest -u

To format your code use:

npm run format

Deployment

npm run publish

Use this lib

Install it as dependency:

npm i @naturalselectionlabs/hui

Then use it in your code:

import { Button } from '@naturalselectionlabs/hui'

export default function Page() {
  return <Button>OK</Button>
}

You must enable the tailwind compilation in the tailwind.config.js:

module.exports = {
  content: ['./node_modules/@naturalselectionlabs/hui/**/*.js'],
}

Debug this lib on another npm package

Clone the repo and use it as a local package in package.json:

{
  "dependencies": {
    "@naturalselectionlabs/hui": "file:../@naturalselectionlabs/hui/dist"
  }
}

FAQs

Package last updated on 16 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc