New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@mrbrunowolff/react-web-components

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mrbrunowolff/react-web-components

Self-contained shadcn/ui components wrapped as Web Components for use in any framework - no external CSS dependencies required

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

React Web Components

Components based on shadcn/ui, available as React components or custom elements with bundled styles, including buttons and FlexLayout docking layouts.

npm License: MIT

Quick start

For a browser app using a bundler:

npm install @mrbrunowolff/react-web-components

Register the standalone Web Components:

import "@mrbrunowolff/react-web-components/wc";

Then use their tags in HTML:

<ui-button variant="default">Save</ui-button>
<ui-button variant="secondary" size="lg">Cancel</ui-button>

The standalone entry bundles React for plain browser use. In a React app, use @mrbrunowolff/react-web-components/wc/peer to reuse the app’s React instance, or import React components directly:

import { Button } from "@mrbrunowolff/react-web-components/react";
import "@mrbrunowolff/react-web-components/theme.css";

export function SaveButton() {
  return <Button variant="default">Save</Button>;
}

Direct React usage requires compatible react and react-dom peer dependencies. See the component guide for CDN usage, attributes, layout properties and themes.

Features

  • Web Components for browser apps and React exports for direct React use.
  • Bundled custom-element styles and an explicit theme stylesheet for React.
  • Button variants, sizes and disabled state.
  • FlexLayout docking with light/dark themes and configurable panels.
  • TypeScript declarations and ESM/CommonJS package entry points.

Scripts

For development, use the Bun version declared in the root package manifest, clone the repository and run bun install --frozen-lockfile. Commands below run from the workspace root:

CommandDescription
bun run showcase:reactStart the React showcase
bun run showcase:wcStart the Web Components showcase
bun run build:libBuild the publishable library
bun run typecheckCheck workspace types
bun run testRun workspace tests
bun run check:ciRun code, build, security and packed-package checks

Development

The workspace contains the library and two showcase apps. See the development guide for structure, browser validation and contributions, and QUALITY.md for the complete validation contract.

Package builds copy this README into the published library. Documentation links use GitHub destinations so they also work from the npm package.

License

MIT — see LICENSE.

Keywords

bun

FAQs

Package last updated on 27 Oct 2026

Related posts