
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
linyows-demo-ui-library
Advanced tools
A demo on how to create a React UI component library using React, Typescript, Rollup, Storybook, Jest and React testing library.
This is a demo UI component library created using React, TypeScript, Rollup, Storybook, Jest, and React Testing Library. It was created for an article update for LogRocket on how to create a UI component library in React. You can read the article here.
Visit my blog, Timonwa's Notes, for awesome technical contents like articles, code snippets, tech goodies, community projects and more.
You can install this demo UI library using npm:
npm install @timonwa/demo-ui-library
To use this demo 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 { Input, Button } from "@timonwa/demo-ui-library";
function App() {
return (
<div>
<Input
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"
/>
<Button
size="medium"
primary={true}
disabled={false}
text="Click me!"
onClick={() => alert("Button clicked!")}
/>
</div>
);
}
export default App;
This library is a demo for learning purposes only and is not intended to be contributed to. You can fork the repository and use the code for your personal use or learning.
npm install
.npm run storybook
.npm test
.npm run build
.This demo UI library is licensed under the MIT License.
More of my articles can be found in Timonwa's Notes. Connect with me on Twitter: @timonwa_
FAQs
A demo on how to create a React UI component library using React, Typescript, Rollup, Storybook, Jest and React testing library.
The npm package linyows-demo-ui-library receives a total of 0 weekly downloads. As such, linyows-demo-ui-library popularity was classified as not popular.
We found that linyows-demo-ui-library demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.