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

@thatjoshguy/oneui-icons

v1.0.0

Published

A comprehensive collection of One UI style icons as React + TypeScript components

Readme

One UI Icons

A comprehensive collection of 973 One UI style icons as customizable React + TypeScript components.

npm version License: MIT

Features

973 Icons - Complete One UI icon set
⚛️ React Components - First-class React + TypeScript support
🎨 Customizable - Easily change size and color via props
🌲 Tree-shakeable - Only bundle the icons you use
📦 Zero Dependencies - Only requires React as a peer dependency
💪 TypeScript - Full type definitions included

Installation

npm install @thatjoshguy/oneui-icons
yarn add @thatjoshguy/oneui-icons
pnpm add @thatjoshguy/oneui-icons

Usage

Basic Usage

Import and use icons as React components:

import { Warning, Wifi, Watch } from '@thatjoshguy/oneui-icons';

function App() {
  return (
    <div>
      <Warning />
      <Wifi />
      <Watch />
    </div>
  );
}

Customizing Size

Control the icon size using the size prop (accepts numbers or strings):

import { Warning } from '@thatjoshguy/oneui-icons';

function App() {
  return (
    <div>
      {/* Number (pixels) */}
      <Warning size={32} />
      
      {/* String with unit */}
      <Warning size="2rem" />
      
      {/* Default is 24 */}
      <Warning />
    </div>
  );
}

Customizing Color

Change the icon color using the color prop:

import { Warning } from '@thatjoshguy/oneui-icons';

function App() {
  return (
    <div>
      <Warning color="red" />
      <Warning color="#3b82f6" />
      <Warning color="currentColor" />
      
      {/* Default is 'white' */}
      <Warning />
    </div>
  );
}

Adding CSS Classes

Use the className prop for additional styling:

import { Warning } from '@thatjoshguy/oneui-icons';

function App() {
  return (
    <Warning className="my-custom-class" />
  );
}

Advanced Usage

All standard SVG props are supported via spread:

import { Warning } from '@thatjoshguy/oneui-icons';

function App() {
  return (
    <Warning
      size={48}
      color="red"
      className="icon"
      onClick={() => console.log('clicked')}
      style={{ cursor: 'pointer' }}
      aria-label="Warning icon"
    />
  );
}

TypeScript

The package includes full TypeScript support. Import the IconProps type if needed:

import { Warning, IconProps } from '@thatjoshguy/oneui-icons';
import { FC } from 'react';

const CustomComponent: FC<{ iconProps: IconProps }> = ({ iconProps }) => {
  return <Warning {...iconProps} />;
};

IconProps Interface

interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'width' | 'height'> {
  size?: number | string;  // Default: 24
  color?: string;          // Default: 'white'
  className?: string;
}

Available Icons

This package includes 973 icons from the OneUI design system. Here are some examples:

  • Warning
  • Wifi
  • Watch
  • Video
  • Upload
  • Tablet
  • Settings
  • Search
  • Notification
  • Home
  • Calendar
  • Battery
  • Accessibility
  • ...and 960 more!

For a complete list of all icons, see the src/index.ts file or explore the SVG directory.

Tree Shaking

This package is optimized for tree shaking. When using modern bundlers (Webpack 5+, Vite, Rollup, etc.), only the icons you import will be included in your final bundle:

// ✅ Only Warning and Wifi will be bundled
import { Warning, Wifi } from '@thatjoshguy/oneui-icons';

// ❌ Avoid this - imports everything
import * as Icons from '@thatjoshguy/oneui-icons';

Icon Naming Convention

Icon component names are converted from the original SVG filenames using PascalCase:

  • warning.svgWarning
  • wifi_video_call.svgWifiVideoCall
  • XR alt.svgXrAlt
  • 360.svg360

Browser Support

This package supports all modern browsers that support ES2020 and React 18+:

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Development

Building from Source

# Install dependencies
npm install

# Generate React components from SVG files
npm run generate

# Build the package
npm run build

# Clean generated files
npm run clean

Project Structure

oneui-icons/
├── SVG/              # Original SVG files (973 icons)
├── scripts/          # Build scripts
│   └── generate.js   # SVG to React converter
├── src/
│   ├── icons/        # Generated React components (gitignored)
│   ├── types.ts      # TypeScript type definitions
│   └── index.ts      # Main export file (auto-generated)
└── dist/             # Built package (gitignored)

Contributing

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

License

MIT © 2026

Related Projects


Note: This package contains icons from the One UI design system. Please ensure you comply with any applicable licensing terms for the original icons.

This project is not affiliated with or endorsed by Samsung.