Webba Forge: React UI Component Library With Built-In Motion

Description:

Webba Forge is a React UI component library for dashboards and settings pages.

It includes a set of motion components to handle card entrances and scroll reveals.

Preview

Webba Forge

Features

  • Light and dark palettes with shared tokens for color, spacing, and corner radii.
  • Date and time inputs, searchable selects, and file upload controls.
  • Modal dialogs, drawers, and feedback components such as toasts.
  • Virtual lists and compact charts for data-heavy screens.
  • Optional Claude Code and Cursor skill files with component APIs and layout examples.

Install Forge and set the app theme

Install Forge in your React project.

npm install wss3-forge

Mount ForgeProvider around the app to supply the CSS variables its components use. Set mode to "light" or "dark", and pass token overrides such as brandPrimary in a flat theme object.

Import both stylesheets at the app entry.

import { Button, Card, ForgeProvider, Heading, VStack } from "wss3-forge";
import "wss3-forge/styles/animations.css";
import "wss3-forge/styles/motion.css";
export function BillingPanel() {
  return (
    <ForgeProvider mode="light" theme={{ brandPrimary: "#2459c4" }}>
      <Card padding="lg">
        <VStack gap="md">
          <Heading level={2}>Billing details</Heading>
          <Button variant="primary">Update billing</Button>
        </VStack>
      </Card>
    </ForgeProvider>
  );
}

ForgeProvider and component props

PropEffect
ForgeProvider.mode, themeSelect the light or dark palette and override individual tokens with a flat object. For example, use brandPrimary for the accent and radiusMd for medium corner radii.
ForgeProvider.fontFamily, shadowsSet the inherited font family. Keep preset shadows, disable them with false, or override individual elevations.
ForgeProvider.motionScale, reducedMotionChoose "subtle", "normal" (default), or "dramatic" for motion intensity. reducedMotion="auto" follows the system preference.
Card.padding, variantSet padding with "none" or a size from "xs" through "4xl". Variants include "raised", "subtle", "outlined", and "elevated".
Card.title, subtitle, actionAdd a heading, supporting text, or an action as { label, onClick }.
Button.variant, sizeSelect the style and size, such as variant="primary" and size="sm".
Button.loading, disabled, onClickShow a pending state during a request and use the native button props for disabling the control and handling clicks.
Button.icon, rightIcon, fullWidthPlace an icon before or after the label or stretch the control to the container width.

Choose components for a screen

Mount ToastProvider for useToast() or NotificationProvider for useNotification(). To let users switch themes, store the active mode in your app and pass it to ForgeProvider.

CategoryExample componentsPractical use
App layout and navigationPage, AppSidebar, Navbar, Tabs, BreadcrumbsGroup settings pages or build a persistent sidebar.
FormsCombobox, DateRangePicker, OTPInput, FileUploadFilter a report by date or collect account details.
Overlays and feedbackModal, BottomSheet, CommandBar, Toast, SkeletonConfirm changes or show feedback after a save.
Data and chartsTable, VirtualList, TreeView, Sparkline, StackedBarShow detailed records and place a trend chart beside each metric.

Add motion to a card group

Place this group inside ForgeProvider. Stagger starts each card 80 ms after the previous one. Use Motion for an individual element with custom initial and animate values or RevealOnScroll for content that enters as the user scrolls.

import { Card, Stagger } from "wss3-forge";
export function UsageCards() {
  return (
    <Stagger stagger={80}>
      <Card padding="lg">Active projects</Card>
      <Card padding="lg">Team storage</Card>
    </Stagger>
  );
}
Stagger propEffect
stagger, baseDelayTime between children and delay before the first child, in milliseconds. The defaults are 60 and 0.
directionPass "forward" (default), "reverse", "center", or "edges" to select the order.
from, to, transitionChange the initial and final motion properties or share a transition across the group.

Install the optional Claude Code skill

From the project root, install the optional /forge skill to give Claude Code the component API, theme tokens, and layout examples.

The command writes to .claude/skills/forge/. After updating the library, refresh that copy with npx wss3-forge upgrade.

npx wss3-forge init

The command writes to .claude/skills/forge/. After updating the library, refresh that copy with npx wss3-forge upgrade.

Related resources

Add Comment