Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@webstrail/ui-library

Latest version: v1.0.10

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: harshpipaliya-webstrail, tushar-chavda
11 Versions
1.8K Downloads

Scan summary

@webstrail/ui-library was last scanned on 26 Nov 2026 at version 1.0.10. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest 4 were published within 7 days (20–26 Nov 2026).
  • Findings: No rules fired in version 1.0.10.
  • Downloads: 1,751 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.10 LATEST 26 Nov 2026 No rules fired
1.0.9 25 Nov 2026 No rules fired
1.0.8 24 Nov 2026 No rules fired
1.0.7 20 Nov 2026 Not shown
1.0.6 19 Nov 2026 Not shown

No rules fired in 1.0.10

Findings

Findings for v1.0.10. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.10; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@webstrail/ui-library

A production-ready, framework-agnostic, enterprise-grade React 19 component library engineered with TypeScript strict mode, CSS Modules isolation, and a 3-tier styling resolution engine.

Designed to be used seamlessly across any consumer application styling paradigm: Tailwind CSS, Plain CSS, CSS Modules, Styled Components, or Emotion.


Table of Contents

  • Features
  • Architecture & Universal Styling Model
    • Three Styling APIs per Component
    • Style Resolution Priority
  • Installation
  • Getting Started
  • Global Configuration System (UIProvider)
    • Advanced UIProvider Capabilities
    • UIConfig Reference
  • Component APIs & Examples
    • Button
    • Input
    • Checkbox
    • Radio & RadioGroup
    • Switch
    • Select
    • Textarea
  • Consumer Integration Guides
    • Tailwind CSS Consumer
    • CSS Modules / Plain CSS Consumer
    • Zero-Provider Standalone Usage

Features

  • React 19 & Strict TypeScript: Complete IntelliSense, zero any, strictly typed props, styles, and configs.
  • Framework Agnostic: Internally scoped with CSS Modules; fully compatible with Tailwind utility classes, CSS Modules, or standard CSS in consumer apps.
  • Zero Style Leakage: Component styles are completely encapsulated; uses scoped --wui-* CSS custom properties, never mutates :root dynamically, and does not alter global body, html, or application layout.
  • 3-Tier Semantic Styling Engine: Fine-grained property merge combining component styles prop > UIProvider config > built-in defaults.
  • 3 Concurrent Styling APIs: Every component supports className (classes/Tailwind), style (inline CSSProperties), and styles (semantic tokens).
  • Accessible (a11y): Compliant with WAI-ARIA guidelines, including accessible labels, descriptions, keyboard navigation, and live regions.
  • Dual Bundle Distribution: ESM (dist/index.js) and CJS (dist/index.cjs) with externalized React and generated .d.ts declarations.

Architecture & Universal Styling Model

Three Styling APIs per Component

Every component in @webstrail/ui-library accepts three distinct styling channels:

<Input
  // 1. className: For Tailwind utilities, CSS Modules classes, or global class names
  className="w-full rounded-lg bg-blue-50 shadow-sm"

  // 2. style: Standard React.CSSProperties directly applied to root DOM element
  style={{ marginBottom: '16px' }}

  // 3. styles: Strongly typed semantic tokens mapped to scoped CSS variables
  styles={{
    height: '48px',
    borderColor: '#2491eb',
    borderRadius: '12px',
    backgroundColor: '#ffffff',
  }}
/>
Style Resolution Priority

Semantic styles are resolved property-by-property in this exact order:

$$\text{Component-level } \texttt{styles} ;\succ; \text{UIProvider } \texttt{config} ;\succ; \text{Built-in Library Defaults}$$

This is an immutable, property-level merge, not a full object replacement. If you specify only { borderColor: 'red' } at the component level, height, padding, font size, and border radius from the Provider and built-in defaults are preserved intact.


Installation

Install using Yarn, NPM, or PNPM:

# Using Yarn
yarn add @webstrail/ui-library

# Using NPM
npm install @webstrail/ui-library

# Using PNPM
pnpm add @webstrail/ui-library

Import the library CSS once in your application entry point (e.g., main.tsx or App.tsx):

import '@webstrail/ui-library/style.css';

Getting Started

import React from 'react';
import { UIProvider, Button, Input } from '@webstrail/ui-library';
import '@webstrail/ui-library/style.css';

export function App() {
  return (
    <UIProvider
      config={{
        colors: {
          primary: '#2491eb',
        },
        button: {
          borderRadius: '8px',
          height: '42px',
        },
      }}
    >
      <main style={{ padding: '24px', maxWidth: '400px' }}>
        <Input
          label="Email"
          placeholder="name@example.com"
          styles={{ borderColor: '#d1d5db' }}
          className="mb-4"
        />

        <Button
          label="Sign In"
          variant="primary"
          fullWidth
          onClick={() => alert('Signing in...')}
        />
      </main>
    </UIProvider>
  );
}

Global Configuration System (UIProvider)

Advanced UIProvider Capabilities
  • Optional: All components work out-of-the-box with modern, accessible default styles without a Provider.
  • Subtree Scoping & Nesting: Nested UIProvider instances inherit from parent providers and override specific properties for a subtree.
  • Zero Pollution: No global :root mutation. CSS custom properties are scoped to components.
  • Reactive & Performant: Configuration merges are memoized; runtime config changes propagate cleanly without unnecessary re-renders.
import { UIProvider } from '@webstrail/ui-library';

const brandTheme = {
  colors: {
    primary: '#6366f1',
    secondary: '#4338ca',
    text: '#0f172a',
    border: '#cbd5e1',
    error: '#ef4444',
  },
  button: {
    height: '44px',
    borderRadius: '10px',
    fontSize: '15px',
  },
  input: {
    height: '44px',
    borderRadius: '10px',
    focusBorderColor: '#6366f1',
  },
};

export function Root() {
  return (
    <UIProvider config={brandTheme}>
      <Application />
    </UIProvider>
  );
}
UIConfig Reference
Section Tokens / Configurable Keys
colors primary, secondary, text, textSecondary, border, background, error, success, disabled, disabledBackground, disabledText, focusRing
typography fontFamily, fontSizeSmall, fontSizeMedium, fontSizeLarge, fontWeightNormal, fontWeightMedium, fontWeightBold
layout borderRadiusSmall, borderRadiusMedium, borderRadiusLarge
button height, borderRadius, fontSize, fontWeight, backgroundColor, textColor, borderColor, hoverBackgroundColor, hoverTextColor, activeBackgroundColor, disabledBackgroundColor, disabledTextColor, padding, transition
input height, borderRadius, borderColor, textColor, placeholderColor, backgroundColor, focusBorderColor, focusRingColor, errorBorderColor, disabledBackgroundColor, disabledTextColor, labelColor, helperColor, errorColor, fontSize, padding
select height, borderRadius, borderColor, textColor, placeholderColor, backgroundColor, focusBorderColor, focusRingColor, errorBorderColor, dropdownBackgroundColor, dropdownBorderColor, dropdownShadow, optionTextColor, optionHoverBackgroundColor, optionHoverTextColor, optionSelectedBackgroundColor, optionSelectedTextColor, optionSelectedHoverBackgroundColor, optionCheckColor, optionBorderRadius, optionPadding, optionFontSize, optionFontWeight, optionSelectedFontWeight, labelColor, errorColor
checkbox size, borderRadius, borderColor, checkedColor, checkmarkColor, backgroundColor, focusRingColor, disabledColor, disabledBackgroundColor, labelColor, fontSize
radio size, borderColor, checkedColor, dotColor, dotSize, backgroundColor, focusRingColor, disabledColor, disabledBackgroundColor, labelColor, descriptionColor, fontSize
switch width, height, thumbSize, thumbColor, thumbCheckedColor, trackColor, trackCheckedColor, focusRingColor, borderRadius, disabledOpacity, labelColor, descriptionColor, fontSize
textarea minHeight, borderRadius, borderColor, textColor, placeholderColor, backgroundColor, focusBorderColor, focusRingColor, errorBorderColor, disabledBackgroundColor, disabledTextColor, labelColor, helperColor, errorColor, counterColor, fontSize, padding

Component APIs & Examples

Button
import { Button } from '@webstrail/ui-library';

// Variants
<Button variant="primary" label="Primary Action" />
<Button variant="secondary" label="Secondary Action" />
<Button variant="outline" label="Outline Action" />
<Button variant="ghost" label="Ghost Action" />
<Button variant="danger" label="Delete" />

// Sizes & States
<Button size="small" label="Small" />
<Button size="large" fullWidth loading loadingText="Processing..." />
<Button disabled label="Disabled" />

// Icons
<Button startIcon={<DownloadIcon />} label="Download Report" />
Input
import { Input } from '@webstrail/ui-library';

// Default Floating Label with smooth transition to top-left corner on focus/fill
<Input
  label="Work Email"
  placeholder="name@company.com"
  required
  helperText="We will never share your email."
  startIcon={<MailIcon />}
  styles={{
    borderColor: '#94a3b8',
    focusBorderColor: '#2491eb',
  }}
/>

// Static Top Label Mode (disable floating transition)
<Input
  label="Username"
  floatingLabel={false}
  placeholder="Enter username"
/>

// Error State
<Input
  label="Username"
  defaultValue="taken_user"
  errorMessage="This username is already taken"
/>
Checkbox
import { Checkbox } from '@webstrail/ui-library';

// Uncontrolled
<Checkbox label="Remember me" defaultChecked />

// Controlled & Indeterminate
<Checkbox
  label="Select all items"
  checked={isAllSelected}
  indeterminate={isPartiallySelected}
  onChange={(e) => handleToggleAll(e.target.checked)}
/>
Select
import { Select } from '@webstrail/ui-library';

// Standard Select - Option theme automatically adapts to UIProvider primary color
<Select
  label="Assigned Team"
  placeholder="Choose team..."
  options={[
    { value: 'eng', label: 'Engineering' },
    { value: 'product', label: 'Product Management' },
    { value: 'ops', label: 'Operations', disabled: true },
  ]}
  value={selectedTeam}
  onChange={(val) => setSelectedTeam(val)}
/>;

// Custom Option Theming via Config or Component Styles
<Select
  label="Custom Option Themed Select"
  styles={{
    optionTextColor: '#334155',
    optionHoverBackgroundColor: '#fef3c7',
    optionHoverTextColor: '#92400e',
    optionSelectedBackgroundColor: '#fde68a',
    optionSelectedTextColor: '#78350f',
    optionSelectedHoverBackgroundColor: '#fcd34d',
    optionCheckColor: '#78350f',
    optionPadding: '10px 14px',
    optionBorderRadius: '8px',
    optionSelectedFontWeight: 600,
  }}
  options={[
    { value: 'admin', label: 'Administrator' },
    { value: 'editor', label: 'Editor' },
    { value: 'viewer', label: 'Viewer' },
  ]}
/>;
Radio & RadioGroup
import { Radio, RadioGroup } from '@webstrail/ui-library';

// Declarative RadioGroup with options & descriptions
<RadioGroup
  name="plan"
  defaultValue="pro"
  direction="vertical"
  options={[
    { value: 'free', label: 'Free Tier', description: 'Up to 3 projects' },
    { value: 'pro', label: 'Pro Tier', description: 'Unlimited projects & priority support' },
    { value: 'enterprise', label: 'Enterprise', disabled: true },
  ]}
  onChange={(val) => console.log('Selected:', val)}
/>;

// Standalone Radio with custom color and size
<Radio name="payment" value="credit_card" label="Credit Card" color="#10b981" size="20px" />;
Switch

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @webstrail/ui-library

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229