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

lda-ui

v0.3.3

Published

LDA UI es una librería de componentes React reutilizables, desarrollada en TypeScript y estilizada con Tailwind CSS. Su objetivo es acelerar el desarrollo de interfaces modernas, accesibles y consistentes en cualquier proyecto React, incluyendo aplicacion

Readme

LDA UI Components

LDA UI es una librería de componentes React reutilizables, desarrollada en TypeScript y estilizada con Tailwind CSS. Su objetivo es acelerar el desarrollo de interfaces modernas, accesibles y consistentes en cualquier proyecto React, incluyendo aplicaciones Next.js.

  • 🚀 Fácil de usar: Importa solo los componentes que necesitas.
  • 🎨 Estilos desacoplados: Usa Tailwind CSS para máxima personalización.
  • 🧩 Tipado estricto: Todos los componentes incluyen tipos TypeScript.
  • Compatibilidad: Funciona en proyectos ESM, CommonJS y Next.js.

Instalación

pnpm add lda-ui
# o
npm install lda-ui
# o
yarn add lda-ui

Uso

Importar componentes

import { Button, Card, Input } from 'lda-ui';

function App() {
  return (
    <div>
      <Button text="Click me" variant="primary" />
      <Input label="Nombre" />
      <Card title="Mi Card" description="Descripción del card" />
    </div>
  );
}

Importar estilos (requerido)

import 'lda-ui/styles';
// o si usas el CSS directamente
import 'lda-ui/dist/styles/tailwind.css';

Utilidades

cn - Función para combinar clases CSS

Utilidad para combinar clases CSS de manera inteligente, resolviendo conflictos de Tailwind CSS:

import { cn } from 'lda-ui';

// Uso básico
const className = cn('bg-red-500', 'text-white', 'p-4');

// Con condicionales
const className = cn(
  'base-class',
  isActive && 'active-class',
  { 'conditional-class': someCondition }
);

// Resuelve conflictos de Tailwind automáticamente
const className = cn('bg-red-500', 'bg-blue-500'); // Resultado: 'bg-blue-500'

Componentes disponibles

  • Button - Botón personalizable. Props: text, variant (primary, secondary, tertiary), size (sm, md, lg), onClick, icon, disabled, type, className.
    • Ejemplo:
      <Button text="Guardar" variant="primary" size="md" onClick={...} />
  • Alert - Componente de alerta para mostrar mensajes. Props: type (info, success, warning, error), label, text, showClose, onClose, className.
    • Ejemplo:
      <Alert type="success" label="¡Éxito!" text="La operación se completó correctamente" showClose onClose={...} />
  • Badge - Insignia para estados o conteos. Props: text, variant, size, className, children.
    • Ejemplo:
      <Badge text={3} variant="success" />
  • Card - Contenedor de contenido. Props: title, description, children, className.
    • Ejemplo:
      <Card title="Título" description="Texto descriptivo">Contenido</Card>
  • FileInput - Input para subir archivos. Props: label, accept, multiple, onChange, className.
    • Ejemplo:
      <FileInput label="Subir imagen" accept="image/*" onChange={...} />
  • Icon - Componente para mostrar iconos SVG. Props: name, size, color, className.
    • Ejemplo:
      <Icon name="check" size={24} color="#22c55e" />
  • Input - Campo de texto. Props: label, value, onChange, type, placeholder, disabled, className.
    • Ejemplo:
      <Input label="Email" type="email" value={email} onChange={...} />
  • Select - Selector desplegable. Props: label, options, value, onChange, disabled, className.
    • Ejemplo:
      <Select label="País" options={[{label: 'España', value: 'es'}]} value={pais} onChange={...} />
  • TabButton - Botón para pestañas. Props: active, onClick, children, className.
    • Ejemplo:
      <TabButton active={true} onClick={...}>General</TabButton>
  • TextArea - Área de texto multilínea. Props: label, value, onChange, rows, placeholder, disabled, className.
    • Ejemplo:
      <TextArea label="Descripción" value={desc} onChange={...} rows={4} />

Desarrollo

# Instalar dependencias
pnpm install

# Desarrollo
pnpm dev

# Build para producción
pnpm build:lib

# Lint
pnpm lint

Licencia

MIT