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 🙏

© 2026 – Pkg Stats / Ryan Hefner

genomics-ai-healthcare-ui

v0.1.0

Published

Reusable React UI component library for the Genomics and AI in Healthcare Lab.

Readme

Genomics AI Healthcare UI

A reusable React UI component library for the Hong Kong JC STEM Lab of Genomics and AI in Healthcare

📦 Installation

npm install genomics-ai-healthcare-ui

🚀 Quick Start

import { Button, Card, Modal, Tabs } from 'genomics-ai-healthcare-ui'
import 'genomics-ai-healthcare-ui/dist/style.css'

function App() {
  return (
    <div>
      <Button variant="primary" onClick={() => alert('Clicked!')}>
        Click Me
      </Button>
      
      <Card elevated>
        <h2>Card Title</h2>
        <p>Card content goes here</p>
      </Card>
    </div>
  )
}

Note: Don't forget to import the CSS file! The components require the stylesheet to be imported for proper styling.

📚 Components

This library provides the following React components:

Button

A versatile button component with multiple variants and sizes.

Props:

  • variant: 'text' | 'primary' | 'secondary' (default: 'text')
  • size: 'small' | 'medium' | 'large' (default: 'medium')
  • active: boolean (default: false)
  • disabled: boolean (default: false)
  • type: 'button' | 'submit' | 'reset' (default: 'button')
  • onClick: () => void
  • className: string
  • style: React.CSSProperties

Example:

<Button variant="primary" size="large" onClick={handleClick}>
  Submit
</Button>

Card

A container component for displaying content in a card format.

Props:

  • elevated: boolean (default: false) - Adds shadow elevation
  • outlined: boolean (default: false) - Adds border outline
  • className: string
  • style: React.CSSProperties

Example:

<Card elevated>
  <h3>Card Title</h3>
  <p>Card content</p>
</Card>

Container

A layout component for constraining content width.

Props:

  • className: string
  • style: React.CSSProperties

Section

A semantic section component for organizing content.

Props:

  • className: string
  • style: React.CSSProperties

Modal

A modal dialog component for displaying content in an overlay.

Props:

  • isOpen: boolean
  • onClose: () => void
  • className: string
  • style: React.CSSProperties

Example:

<Modal isOpen={isOpen} onClose={() => setIsOpen(false)}>
  <h2>Modal Title</h2>
  <p>Modal content</p>
</Modal>

Dropdown

A dropdown menu component.

Props:

  • options: Array<{ label: string; value: any }>
  • onSelect: (value: any) => void
  • placeholder: string
  • className: string
  • style: React.CSSProperties

Tabs

A tabbed interface component.

Props:

  • tabs: Array<{ label: string; content: React.ReactNode }>
  • defaultTab: number (default: 0)
  • className: string
  • style: React.CSSProperties

Example:

<Tabs
  tabs={[
    { label: 'Tab 1', content: <div>Content 1</div> },
    { label: 'Tab 2', content: <div>Content 2</div> }
  ]}
/>

Link

A styled link component.

Props:

  • href: string
  • target: string
  • className: string
  • style: React.CSSProperties

Image

An image component with styling options.

Props:

  • src: string
  • alt: string
  • className: string
  • style: React.CSSProperties

🛠️ Development

Prerequisites

  • Node.js >= 18
  • npm or yarn

Setup

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

Project Structure

genomics-ai-healthcare-ui/
├── src/
│   ├── components/      # React components
│   │   ├── Button.tsx
│   │   ├── Card.tsx
│   │   ├── Container.tsx
│   │   ├── Dropdown.tsx
│   │   ├── Image.tsx
│   │   ├── Link.tsx
│   │   ├── Modal.tsx
│   │   ├── Section.tsx
│   │   └── Tabs.tsx
│   └── index.ts         # Main export file
├── package.json
├── tsconfig.json
└── vite.config.mts

📋 Requirements

  • React >= 18
  • React DOM >= 18

These are peer dependencies and should be installed in your project.

📝 License

MIT License - see LICENSE file for details

👥 Author

Genomics and AI in Healthcare Lab

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.