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

nexaas-ui-components

v1.0.58

Published

A React component library with Tailwind CSS

Downloads

1,141

Readme

OMS UI Components

Uma biblioteca de componentes React com Tailwind CSS.

Instalação

npm install oms-ui-components

Uso

Importar o CSS

Primeiro, importe o CSS da biblioteca no arquivo principal do seu projeto (main.tsx, index.tsx, ou App.tsx):

import 'oms-ui-components/styles.css'

Nota para desenvolvimento local: Se você estiver trabalhando na biblioteca (no playground), use o caminho relativo: import '../../dist/index.css'

Usar os componentes

import { Button } from 'oms-ui-components'

function App() {
  return (
    <div>
      <Button 
        variant="primary" 
        size="md" 
        label="Click me" 
        onClick={() => console.log('Clicked!')}
      />
    </div>
  )
}

Componentes Disponíveis

Button

Um componente de botão versátil com múltiplas variantes e tamanhos.

Props

  • label (string, required): Texto do botão
  • variant (string, optional): Variante visual do botão
    • primary
    • secondary
    • tertiary
    • ghost
    • danger
    • success
  • size (string, optional): Tamanho do botão
    • xxs
    • xs
    • sm
    • md
    • lg
  • icon (JSX.Element, optional): Ícone a ser exibido no botão
  • loading (boolean, optional): Estado de carregamento
  • loadingIcon (JSX.Element, optional): Ícone customizado para o estado de carregamento
  • dropdown (boolean, optional): Indica se o botão tem um dropdown
  • Todas as props padrão do HTML <button> (onClick, disabled, etc.)

Exemplo

import { Button } from 'oms-ui-components'

<Button 
  variant="primary" 
  size="md" 
  label="Salvar"
  onClick={handleSave}
  disabled={isLoading}
/>

ButtonLink

Um componente de link estilizado como botão, compatível com qualquer biblioteca de roteamento.

Props

  • label (string | JSX.Element, required): Texto ou conteúdo do link
  • href (string, required): URL de destino
  • as (ComponentType, optional): Componente de link customizado (Next.js Link, React Router Link, etc.). Por padrão usa <a>
  • variant (string, optional): Variante visual (mesmas do Button)
  • size (string, optional): Tamanho do link (mesmas do Button)
  • icon (JSX.Element, optional): Ícone a ser exibido
  • hotkey (string, optional): Atalho de teclado (ex: "Ctrl+S")
  • hotkeyPosition (string, optional): Posição do label do hotkey
    • top
    • bottom (padrão)
    • left
    • right
  • disabled (boolean, optional): Estado desabilitado
  • target (string, optional): Atributo target do link
  • Todas as props padrão do HTML <a>

Exemplos

Uso básico (usa <a> nativo):

import { ButtonLink } from 'oms-ui-components'

<ButtonLink 
  href="/path" 
  label="Click" 
  variant="primary"
/>

Com Next.js Link:

import { ButtonLink } from 'oms-ui-components'
import Link from 'next/link'

<ButtonLink 
  as={Link} 
  href="/dashboard" 
  label="Dashboard"
  variant="secondary"
/>

Com React Router:

import { ButtonLink } from 'oms-ui-components'
import { Link } from 'react-router-dom'

<ButtonLink 
  as={Link} 
  href="/about" 
  label="Sobre"
  variant="outline"
/>

Com hotkey:

<ButtonLink 
  href="/save" 
  label="Salvar"
  hotkey="Ctrl+S"
  hotkeyPosition="right"
/>

Desenvolvimento

Pré-requisitos

  • Node.js 18+
  • npm ou yarn

Instalação local

git clone <repository-url>
cd oms-ui-components
npm install

Build

npm run build

Desenvolvimento com watch mode

npm run dev

Playground

Para testar os componentes durante o desenvolvimento:

cd playground
npm install
npm run dev

Estrutura do projeto

oms-ui-components/
├── src/
│   ├── components/     # Componentes React
│   ├── styles/         # Estilos Tailwind
│   └── index.ts        # Exportações principais
├── dist/               # Build gerado
├── playground/         # App de teste local
└── package.json

Licença

ISC