New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@devdynamo/ui-components

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devdynamo/ui-components

A collection of reusable UI components for React.

latest
npmnpm
Version
1.2.0
Version published
Weekly downloads
2
100%
Maintainers
0
Weekly downloads
 
Created
Source

UI Components Library

This package provides reusable React UI components, starting with a versatile button component. More components may be added in the future.

🚀 Features

  • Button Component:
    • 5 Variants: primary, secondary, success, danger, warning
    • 3 Sizes: small, medium, large
    • Customizable Props: label, onClick, size, variant, disabled
    • Disabled State: Opacity is reduced when the button is disabled

📦 Installation

npm install your-package-name

🛠 Usage

import Button from "your-package-name";

<Button label="Primary Button" variant="primary" onClick={() => alert("Clicked!")} />
<Button label="Danger Button" variant="danger" size="large" />
<Button label="Success" variant="success" size="small" disabled />

📌 Props

PropTypeDefaultDescription
labelstringRequiredButton text
onClickfunctionnullClick event handler
variantstringprimaryButton style (primary, secondary, success, danger, warning)
sizestringmediumButton size (small, medium, large)
disabledbooleanfalseDisables the button

📝 License

This project is licensed under the MIT License.

Keywords

react

FAQs

Package last updated on 08 Mar 2025

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