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

@wblo/ui

v0.3.0

Published

Reusable React UI component library.

Readme

@wblo/ui

Reusable React UI component library with RTL/LTR support, wblo-ui namespaced theming, dark mode, rich form controls, data display, and editor tooling.

Install

pnpm add @wblo/ui react react-dom
import "@wblo/ui/styles.css"

Quick Start

import { Button, Card, CardContent } from "@wblo/ui"

export function Demo() {
  return (
    <Card>
      <CardContent>
        <Button>Save</Button>
      </CardContent>
    </Card>
  )
}

Theming

Token Override

:root {
  --wblo-ui-theme-primary: 210 92% 52%;
  --wblo-ui-theme-primary-foreground: 0 0% 100%;
  --wblo-ui-theme-background: 210 33% 98%;
  --wblo-ui-theme-foreground: 222 26% 14%;
}

Dark Mode

Dark mode is active when one of these is present:

  • :root[data-wblo-ui-theme="dark"]
  • .wblo-ui-dark
  • .dark
document.documentElement.setAttribute("data-wblo-ui-theme", "dark")

Font Utilities

font-ui-main, font-ui-latin, font-ui-greek, font-ui-arabic, font-ui-persian, font-ui-cyrillic, font-ui-mono

:root {
  --font-main: "Plus Jakarta Sans", sans-serif;
  --font-persian: "Vazir", sans-serif;
}

Component Catalog (Complete Export List)

The package exports everything below from @wblo/ui:

Components

  • alert
  • action-icon
  • avatar-image-upload
  • avatar
  • badge
  • button
  • calendar
  • card
  • checkbox
  • choice-cards
  • combobox
  • command
  • country-flag
  • dialog
  • date-picker
  • dropzone
  • dropdown-menu
  • dynamic-item-list
  • field
  • file-upload
  • form
  • form-steps
  • input
  • input-group
  • input-styles
  • jalali-date-picker
  • label
  • lazy-combobox
  • meta-pagination
  • multilingual-input
  • notifications-popover
  • popover
  • pagination
  • radio-group
  • rich-editor
  • rich-sonner
  • scroll-area
  • select
  • selected-file-chip
  • segmented-tabs
  • skeleton
  • slider
  • sticky-footer
  • switch
  • table
  • toggle
  • tooltip
  • textarea
  • upload-dropzone

Utilities

  • cn from lib/cn
  • sanitizeSimpleHtml from lib/sanitize-simple-html

Usage Examples

Basic Form Row

import { FormItem, FormLabel, Input, FormDescription } from "@wblo/ui"

<FormItem>
  <FormLabel>Email</FormLabel>
  <Input placeholder="[email protected]" />
  <FormDescription>We only use this for account updates.</FormDescription>
</FormItem>

Select + Combobox

import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, LazyCombobox } from "@wblo/ui"

<Select defaultValue="active">
  <SelectTrigger><SelectValue placeholder="Status" /></SelectTrigger>
  <SelectContent>
    <SelectItem value="active">Active</SelectItem>
    <SelectItem value="paused">Paused</SelectItem>
  </SelectContent>
</Select>

<LazyCombobox
  value=""
  onValueChange={() => {}}
  options={[{ value: "1", label: "Workspace A" }]}
  placeholder="Choose workspace"
  searchPlaceholder="Search..."
  emptyText="No result"
/>

Date Controls

import { DatePickerInput, DateRangePicker, JalaliDatePickerInput } from "@wblo/ui"

<DatePickerInput value={undefined} onValueChange={() => {}} />
<DateRangePicker value={undefined} onValueChange={() => {}} />
<JalaliDatePickerInput value={undefined} onValueChange={() => {}} />

Dialog + Tooltip + Popover

import { Dialog, DialogTrigger, DialogContent, Button, Tooltip, TooltipTrigger, TooltipContent } from "@wblo/ui"

<Dialog>
  <DialogTrigger render={<Button>Open</Button>} />
  <DialogContent>
    <p>Dialog body</p>
  </DialogContent>
</Dialog>

<Tooltip>
  <TooltipTrigger render={<Button variant="outline">Hover me</Button>} />
  <TooltipContent>Tooltip content</TooltipContent>
</Tooltip>

Table + Pagination

import { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, MetaPagination } from "@wblo/ui"

<Table>
  <TableHeader>
    <TableRow>
      <TableHead>Name</TableHead>
      <TableHead>Status</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    <TableRow>
      <TableCell>Release pipeline</TableCell>
      <TableCell>Healthy</TableCell>
    </TableRow>
  </TableBody>
</Table>

<MetaPagination
  meta={{ currentPage: 1, lastPage: 5, perPage: 20, total: 100 }}
  previousText="Previous"
  nextText="Next"
  onPageChange={() => {}}
/>

Uploads

import { UploadDropzone } from "@wblo/ui"

<UploadDropzone
  description="Drop files here"
  browseLabel="Browse"
  emptyLabel="No files selected"
  uploadErrorMessage="Upload failed"
  removeSelectedFileAriaLabel="Remove file"
  onUploadFile={async () => undefined}
/>

Rich Editor

import { RichEditor, RichEditorHtmlPreview } from "@wblo/ui"

<RichEditor initialValue="<p>Hello</p>" onValueChange={(html) => {}} />
<RichEditorHtmlPreview value="<p>Preview</p>" />

Notifications and Toast

import { showSemanticSonner, NotificationsPopover, Button } from "@wblo/ui"

showSemanticSonner({
  type: "success",
  title: "Saved",
  message: "All changes are live.",
})

<NotificationsPopover
  trigger={<Button variant="outline">Notifications</Button>}
  title="Latest updates"
  items={[]}
/>

Helpers

import { cn, sanitizeSimpleHtml } from "@wblo/ui"

const cls = cn("px-2", true && "text-sm")
const safe = sanitizeSimpleHtml("<p>Hello <script>alert(1)</script></p>")

Local Development

pnpm --filter @wblo/ui typecheck
pnpm --filter @wblo/ui build
pnpm storybook

Publish

cd packages/ui
npm version patch
npm login
npm publish --access public

For private scoped publish:

npm publish --access restricted

Security Note

Never commit npm auth tokens in .npmrc. Use user-level npm auth locally and CI secrets in pipelines.