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

lcano-react-ui

v2.4.2

Published

React UI Components Library para meus projetos

Readme

lcano-react-ui

A React UI component library for personal projects — built to standardize design and speed up interface development across multiple apps (Portuguese and English).

Requirements

Peer dependencies — install these in your project, they aren't bundled:

  • react >= 16.8.0
  • react-dom >= 16.8.0
  • styled-components >= 5.0.0

Installation

npm install lcano-react-ui
yarn add lcano-react-ui

Ships ESM (dist/esm), CommonJS (dist/cjs), and TypeScript types (dist/types) — no extra bundler configuration needed.

Theming

Most components read colors from a styled-components theme shaped like AppTheme. Wrap your app in a ThemeProvider with the library's default theme, or your own:

import { ThemeProvider } from 'styled-components';
import { DEFAULT_THEME_SYSTEM } from 'lcano-react-ui';

<ThemeProvider theme={DEFAULT_THEME_SYSTEM}>
  <App />
</ThemeProvider>
interface AppTheme {
  title?: string;
  colors: {
    primary: string;
    secondary: string;
    tertiary: string;
    quaternary: string;
    white: string;
    // + black, gray, success, info, warning, and any custom keys
    [key: string]: string;
  };
}

Components with a variant/variantColor prop (VariantColor = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'success' | 'info' | 'warning') resolve it against theme.colors at render time — any theme object with those keys works, including one built by your own app (see ThemeSelector for switching between several themes at runtime).

Quick start

import { ThemeProvider } from 'styled-components';
import { DEFAULT_THEME_SYSTEM, Button, Panel } from 'lcano-react-ui';

function App() {
  return (
    <ThemeProvider theme={DEFAULT_THEME_SYSTEM}>
      <Panel title="Welcome">
        <Button variant="success" description="Get started" onClick={() => {}} />
      </Panel>
    </ThemeProvider>
  );
}

Components

Each component has its own README with the full prop table, usage examples, and notes on gotchas/dependencies.

| Component | Description | | --- | --- | | AccountSummary | Signed-in user row: avatar, name, log-out button | | ActionButton | Floating action button with a hover-out options menu | | BadgeCard | Icon-tile list card for achievements/badges/collectibles | | Breadcrumb | Scrollable breadcrumb trail | | Button | Themed icon/label button | | ConfirmModal | Preconfigured confirm/cancel modal | | Container | Generic themed <div> layout primitive | | DragDropFile | Single-file drag-and-drop upload zone | | FieldTextArea | Labeled auto-growing textarea | | FieldValue | Labeled input adapting to string/number/boolean/date/select | | GoogleSignInButton | Google Identity Services sign-in button | | HighlightBox | Centered pill badge colored by variant | | IconButton | Circular icon-only button | | ImagePicker | Circular avatar with a file-picker overlay | | Loading | Fullscreen spinner overlay | | Modal | Generic centered modal dialog | | OptionGrid | Grid of selectable option cards, optional color swatch | | PaginatedGrid | CSS grid that paginates itself by row count | | Panel | Titled content card with header/body/footer | | QrCode | Inline SVG QR code | | RailTabsNav | App nav: icon rail on wide/landscape screens, labeled bottom tabs on narrow ones | | SearchFilterRSQL | RSQL filter builder | | SearchPagination | Pagination controls for a PagedResponse | | SearchSelectField | Async debounced search combobox | | SideNav | App nav: icon rail on wide screens, hamburger + drawer on narrow ones | | Stack | Flexbox row/column layout with dividers | | SummaryCard | Small KPI/metric card | | Table | Data table with columns, pagination, row actions, responsive stacking | | Tabs | Uncontrolled tab bar | | ThemeFavicon | Favicon that follows the active theme | | ThemeSelector | Theme picker grid | | ToastNotification | Single toast card | | ToastStack | Stacking, auto-dismissing notification queue | | ToggleSwitch | Two-option segmented control |

Hooks & contexts

Development

npm install
npm run build   # rm -rf dist && rollup -c → dist/esm, dist/cjs, dist/types

dist/ is build output and is not committed to this repo (see .gitignore) — it's generated by CI and published to npm on every v* tag push (.github/workflows/publish.yml). To cut a release:

npm version patch   # or minor / major
git push --follow-tags

A separate ci.yml workflow runs npm run build on every push/PR to main to catch a broken build before merge.

License

MIT