🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@brightdb/ui-components

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightdb/ui-components

A shared library on how to create a React UI component library using React, Typescript, Rollup, Storybook, Jest and React testing library.

latest
npmnpm
Version
1.0.7
Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

brightdb UI Components Library

This is a demo UI component library created using React, TypeScript, Rollup, Storybook, Jest, and React Testing Library.

Installation

You can install this demo UI library using npm:

npm install @brightdb/ui-components

Usage

To use this UI library in your project, import the components you need from the library and use them in your React components.

import React from "react";
import { BMInput, BMButton } from "@brightdb/ui-components";

function App() {
	return (
		<div>
			<BMInput
				id="name"
				disabled={false}
				label="Enter your name"
				message="This field is required"
				error={false}
				success={false}
				onChange={(e) => console.log(e.target.value)}
				placeholder="Enter your name here"
			/>
			<BMButton
				size="medium"
				primary={true}
				disabled={false}
				text="Click me!"
				onClick={() => alert("Button clicked!")}
			/>
		</div>
	);
}

export default App;

Steps

  • Clone the repository to your local machine.
  • Install the dependencies using npm install.
  • View the components in the browser using npm run storybook.
  • Make your changes.
  • Test the changes using npm test.
  • Build the library using npm run build.
  • Publish the package on npm.
  • Install and use the package in your project.

Keywords

Shared

FAQs

Package last updated on 10 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts