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

@utk09/finra-ui

v0.0.5

Published

Component library for web applications. Core UI components and styles.

Downloads

390

Readme

Finra UI

React component library for web applications.

CI npm version Storybook

Live Demo

Browse all components with interactive examples: finra-ui.netlify.app

Installation

npm install @utk09/finra-ui
# or
pnpm add @utk09/finra-ui

Quick Start

Import the global styles once at the root of your app, then use any component:

import "@utk09/finra-ui/styles";
import { Button, Input, Badge } from "@utk09/finra-ui";

function App() {
  return (
    <div>
      <Button variant="primary">Click me</Button>
      <Input placeholder="Enter text..." />
      <Badge sentiment="success">Active</Badge>
    </div>
  );
}

Components

Styled Components

| Component | Description | | -------------- | -------------------------------------------------------------------------------------------- | | Button | Button with variant (primary/secondary/tertiary) and sentiment (danger/success/warning/info) | | IconButton | Icon-only button with aria-label requirement | | ButtonGroup | Groups buttons with merged borders | | Input | Text input with variants, validation states, adornments, and clearable support | | Textarea | Multi-line text input with character count and auto-resize | | NumberInput | Numeric input with increment/decrement buttons | | FormField | Wrapper that wires label, helper text, and error message with a11y attributes | | Checkbox | Custom-styled checkbox with indeterminate support | | Switch | Toggle switch (on/off) | | RadioButton | Radio button for grouped exclusive selection | | Slider | Range slider with optional label and value display | | PillInput | Tokenized tag/pill input with keyboard support | | FileDropZone | Drag-and-drop file upload zone | | Badge | Inline status/category label with variant and sentiment | | Divider | Horizontal or vertical separator |

Unstyled Components

Every styled component has an unstyled base that provides only behavior and accessibility - no visual styles. Import from the /unstyled entry point:

import {
  ButtonBase,
  CheckboxBase,
  SwitchBase,
  RadioButtonBase,
  SliderBase,
  FormFieldBase,
  PillInputBase,
  FileDropZoneBase,
} from "@utk09/finra-ui/unstyled";

Available: ButtonBase, IconButtonBase, InputBase, TextareaBase, NumberInputBase, CheckboxBase, SwitchBase, RadioButtonBase, SliderBase, FormFieldBase, PillInputBase, FileDropZoneBase.

Features

Variants & Sentiments

Buttons and Badges support three variants and four sentiments that combine freely:

<Button variant="primary" sentiment="danger">Delete</Button>
<Button variant="secondary" sentiment="success">Approve</Button>
<Badge variant="tertiary" sentiment="warning">Pending</Badge>

Density System

Control spacing globally via a data-density attribute on any ancestor element. All components respond automatically - no props needed:

{
  /* Compact UI for data-dense screens */
}
<div data-density="high">
  <Button>Tight</Button>
  <Input placeholder="Compact" />
</div>;

{
  /* Spacious UI */
}
<div data-density="low">
  <Button>Relaxed</Button>
</div>;

Three levels: high, medium (default), low.

Theming

Override design tokens via CSS custom properties. Every component uses --color-*, --radius-*, --font-* tokens defined in the global styles:

:root {
  --color-primary-600: #2563eb;
  --color-error: #dc2626;
  --radius-md: 0.375rem;
}

CSS Override Selectors

Every component renders a stable data-finra-ui attribute for targeted CSS overrides:

[data-finra-ui="button"] {
  text-transform: uppercase;
}

[data-finra-ui="input"] {
  min-height: 3rem;
}

Form Field Composition

FormField automatically wires id, aria-describedby, aria-invalid, and disabled onto its child input:

<FormField
  label="Email"
  required
  validationStatus="error"
  errorMessage="Please enter a valid email."
  helperText="We'll never share your email.">
  <Input placeholder="[email protected]" />
</FormField>

Zero External Runtime Dependencies

The only runtime dependencies are clsx and class-variance-authority.

Development

This is a pnpm monorepo with Turborepo.

# Install dependencies
pnpm install

# Run development (Storybook)
pnpm run dev

# Build the library
pnpm run build

# Run tests
pnpm run test

# Type check
pnpm run typecheck

# Lint
pnpm run lint

# All checks at once
pnpm run typecheck && pnpm run lint && pnpm run test

Project Structure

packages/core/     - Component library (@utk09/finra-ui)
apps/storybook/    - Storybook documentation app

License

MIT