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

@granto-umbrella/umbrella-components

v3.0.61

Published

Umbrella Components for React

Readme

Umbrella - Components - Design System

Usando no Projeto React

Instalar

# Umbrella - Components (Design System)

Biblioteca de componentes React reutilizáveis para o design system do projeto Umbrella.

## Instalação

npm:
```bash
npm install @granto-umbrella/umbrella-components

yarn:

yarn add @granto-umbrella/umbrella-components

Uso básico

Importe o componente desejado e use-o no seu app React:

import { Button } from '@granto-umbrella/umbrella-components';

function App() {
  return (
    <div>
      <Button variant="primary">Clique Aqui</Button>
    </div>
  );
}

export default App;

Componentes incluídos

Este pacote contém (exemplos principais):

  • Button — botão reutilizável com variantes e estados.
  • (Adicione aqui outros componentes do pacote quando houver: Input, Modal, Card, etc.)

Button — API principal

Props mais comuns:

  • children: ReactNode — conteúdo do botão.
  • variant: "primary" | "secondary" | "tertiary" — variação visual.
  • size: "sm" | "md" | "lg" — tamanho do botão.
  • disabled: boolean — desabilita interações.
  • onClick: (event) => void — callback de clique.
  • className: string — classes adicionais.

Exemplos:

<Button variant="primary" size="md" onClick={() => console.log('clicado')}>
  Salvar
</Button>

<Button variant="secondary" disabled>
  Cancelar
</Button>

Acessibilidade

  • Componentes seguem práticas básicas de acessibilidade (atributos ARIA quando aplicável, foco visível, suporte a teclado).
  • Sempre verifique pontos específicos de acessibilidade ao utilizar componentes em fluxos críticos (formularios, modais, etc.).

Estilos e theming

  • Os componentes são estilizados com CSS-in-JS / CSS modular (dependendo da implementação).
  • Para customizar cores/temas, prefira expor variáveis de tema ou wrappers globais (ThemeProvider). Verifique a implementação do projeto para detalhes sobre o provider e tokens disponíveis.

Desenvolvimento

Comandos úteis (execute na raiz do pacote ou monorepo conforme estrutura do projeto):

Instalar dependências:

pnpm install
# ou npm install

Executar storybook (documentação interativa):

pnpm storybook
# ou npm run storybook

Rodar testes:

pnpm test
# ou npm test

Build do pacote:

pnpm build
# ou npm run build

Lint:

pnpm lint
# ou npm run lint

Publicar (ajuste conforme pipeline do projeto):

pnpm publish
# ou npm publish

Contribuição

  • Abra issues para bugs ou melhorias.
  • Envie PRs seguindo o padrão de commits do repositório.
  • Inclua testes e atualize a documentação/stories para novos componentes ou alterações de API.

Boas práticas

  • Prefira componentes compostos e props controladas quando precisar de maior flexibilidade.
  • Mantenha a consistência visual usando as variantes e tokens do design system.
  • Documente novos componentes com stories e exemplos de uso.

Licença

Especifique a licença do projeto (por exemplo MIT) no package.json e no arquivo LICENSE.

Contato / suporte: descreva o canal do time (Slack, e-mail ou GitHub) para dúvidas e manutenção.


# Uso no Projeto React

## Importar o Componente

```js
import { Button } from '@granto-umbrella/umbrella-components';

function App() {
  return (
    <div>
      <Button variant="primary">Clique Aqui</Button>
    </div>
  );
}

export default App;