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

@triadui/icons

v0.1.4

Published

Core Material Design 3 icon component for React applications with TypeScript and JavaScript support. Works with Next.js, Vite, CRA, and more. Part of Triad UI.

Readme

@triadui/icons

npm version License: MIT TypeScript JavaScript Next.js

Core Material Design 3 icon component for React applications with TypeScript and JavaScript support. Works seamlessly with Next.js, Vite, Create React App, and more.

✨ Features

  • 🎨 Material Design 3 - Latest Material Symbols icons
  • 📦 Multiple Formats - ESM, CommonJS, and UMD builds
  • 🔷 TypeScript - Full type definitions included
  • 🟨 JavaScript - Works perfectly without TypeScript
  • Next.js Ready - App Router and Pages Router compatible
  • 🌐 Universal - Works in all React environments
  • 🎭 Variable Fonts - Fill, weight, grade, and optical size control
  • 🎯 Tree-shakeable - Import only what you need
  • 📱 Responsive - Built-in size presets

📦 Installation

# npm
npm install @triadui/icons

# yarn
yarn add @triadui/icons

# pnpm
pnpm add @triadui/icons

🚀 Quick Start

TypeScript / TSX

import { Icon } from '@triadui/icons';

function App() {
  return (
    <div>
      <Icon name="home" />
      <Icon name="search" variant="outlined" fill={1} />
      <Icon name="settings" variant="sharp" color="primary" fontSize="large" />
    </div>
  );
}

JavaScript / JSX

import { Icon } from '@triadui/icons';

function App() {
  return (
    <div>
      <Icon name="home" />
      <Icon name="search" variant="outlined" fill={1} />
      <Icon name="settings" variant="sharp" color="primary" fontSize="large" />
    </div>
  );
}

🔧 Framework Setup

Next.js

// In your layout or main component
import '@triadui/icons/styles';

// Use in components
import { Icon } from '@triadui/icons';

<Icon name="home" />

Vite / Create React App

// In your main CSS file or component
import '@triadui/icons/styles';

// In your components
import { Icon } from '@triadui/icons';

<Icon name="search" variant="outlined" />

📖 API Reference

Icon Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | name | string | - | Icon name (required) | | variant | 'outlined' \| 'filled' \| 'rounded' \| 'sharp' | 'rounded' | Icon style variant | | fill | 0 \| 1 | 0 | Fill variation (0 = outlined, 1 = filled) | | weight | number | 400 | Font weight (100-700) | | grade | number | 0 | Grade variation (-50 to 200) | | opsz | number | 24 | Optical size (20-48) | | fontSize | IconSize | 'medium' | Icon size preset or custom number | | color | IconColor | 'inherit' | Icon color preset | | className | string | '' | Additional CSS class name | | style | React.CSSProperties | {} | Inline styles |

Size Presets

  • 'small' - 20px
  • 'medium' - 24px (default)
  • 'large' - 32px
  • 'xlarge' - 40px
  • Custom number (e.g., 28)

Color Presets

  • 'inherit' - Inherit from parent
  • 'primary' - Theme primary color
  • 'secondary' - Theme secondary color
  • 'error' - Error/danger color
  • 'warning' - Warning color
  • 'info' - Info color
  • 'success' - Success color

🎨 Advanced Usage

Custom Styling

// TypeScript
<Icon 
  name="favorite"
  style={{ color: '#ff0000', fontSize: '32px' }}
/>

// With CSS classes
<Icon 
  name="star"
  className="my-custom-icon"
/>

Variable Font Settings

<Icon 
  name="home"
  fill={1}        // Filled icon
  weight={700}    // Bold
  grade={200}     // Emphasized
  opsz={48}       // Large optical size
/>

Dynamic Icons (JavaScript)

const iconNames = ['home', 'search', 'settings', 'favorite'];

function IconList() {
  return (
    <div>
      {iconNames.map((name) => (
        <Icon key={name} name={name} fontSize="large" />
      ))}
    </div>
  );
}

🌐 Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • React Native (with appropriate setup)

📝 TypeScript Support

Full TypeScript definitions are included. Types are automatically imported when using TypeScript:

import { Icon, IconProps, IconSize, IconColor } from '@triadui/icons';

const MyIcon: React.FC<{ size: IconSize }> = ({ size }) => {
  return <Icon name="home" fontSize={size} />;
};

🤝 CommonJS Support

This package supports both ESM and CommonJS:

// ESM (recommended)
import { Icon } from '@triadui/icons';

// CommonJS
const { Icon } = require('@triadui/icons');

� Finding Icons

Visit Google Fonts Material Symbols to browse all available icons. Use the icon name exactly as shown (e.g., home, search, favorite).

�📄 License

Part of Triad UI design system

🐛 Issues

Report issues at: GitHub Issues

📦 Related Packages

  • @triadui/core - Core UI components
  • @triadui/theme - Theme system

Made with ❤️ by the Triad UI team