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

@playtopia/icons

v1.7.4

Published

Librería de iconos oficiales Playtopia para React, React Native, Expo y Next.js

Downloads

2,015

Readme

@playtopia/icons

Librería oficial de iconos de Playtopia. Compatible con React, React Native, Expo y Next.js.


Instalación

npm install @playtopia/icons

Peer Dependencies

Según tu plataforma, asegúrate de tener instaladas las dependencias necesarias:

React / Next.js (web):

npm install react

React Native / Expo:

npm install react react-native react-native-svg

Uso

React / Next.js

import { IconHome } from "@playtopia/icons/react";

export default function App() {
  return <IconHome size={32} color="#333" />;
}

React Native / Expo

import { IconHome } from "@playtopia/icons/react-native";

export default function App() {
  return <IconHome size={32} color="#333" />;
}

Props

Todos los iconos aceptan las siguientes props:

| Prop | Tipo | Default | Descripción | | ---------- | ----------------------- | ------- | ------------------------------------------ | | size | number \| string | 24 | Tamaño del icono (aplica a width y height) | | width | number \| string | 24 | Ancho del icono | | height | number \| string | 24 | Alto del icono | | color | string | #222 | Color del trazo (stroke) | | ...props | SVGProps / SvgProps | — | Cualquier prop nativa de SVG |


Iconos disponibles

| Icono | Nombre del componente | | ----- | --------------------- | | 🏠 | IconHome |

Esta tabla se actualiza automáticamente con cada build.


Desarrollo

Agregar un nuevo icono

  1. Coloca el archivo SVG en src/svg/ con formato kebab-case:

    src/svg/icon-mi-icono.svg
  2. Ejecuta el generador automático:

    npm run generate
  3. Los componentes se crean automáticamente en src/react/ y src/react-native/.

  4. Ejecuta el build:

    npm run build

Scripts disponibles

| Script | Descripción | | -------------------- | --------------------------------------------------- | | npm run build | Limpia, optimiza SVGs, genera componentes y compila | | npm run generate | Genera componentes React y RN a partir de SVGs | | npm run svgo | Optimiza los SVGs de src/svg/ | | npm run clean | Elimina la carpeta dist/ | | npm run test | Ejecuta los tests con Vitest | | npm run test:watch | Ejecuta tests en modo watch |

Convenciones de nombres

| SVG (src/svg/) | Componente generado | | ----------------------- | ------------------- | | icon-home.svg | IconHome | | icon-user-profile.svg | IconUserProfile | | icon-arrow-left.svg | IconArrowLeft |


Estructura del proyecto

@playtopia/icons/
├── src/
│   ├── svg/                  # SVGs originales (fuente de verdad)
│   ├── react/                # Componentes React (auto-generados)
│   └── react-native/         # Componentes React Native (auto-generados)
├── dist/                     # Build final (ESM + CJS + tipos)
├── scripts/
│   └── generate-icons.mjs    # Generador automático
├── __tests__/                # Tests
├── svgo.config.js            # Configuración de optimización SVG
├── tsup.config.ts            # Configuración de build
└── vitest.config.ts          # Configuración de tests

Publicar nueva versión

npm version patch  # o minor / major
npm publish --access public

Licencia

UNLICENSED — Uso privado de Playtopia.