Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@pixelblock/cli
Advanced tools
A customizable v component for React applications.
You can install the @pixelblock/buttons package via npm:
npm install @pixelblock/buttons
Or using yarn:
yarn add @pixelblock/buttons
import React from 'react';
import Button from '@pixelblock/buttons';
const App = () => (
<div>
<Button buttonStyle="basic" variant="primary">Primary Button</Button>
</div>
);
export default App;
Button Props
Prop Name | Type | Default | Description |
---|---|---|---|
buttonStyle | 'basic' | 'slideBottom' | 'slideLeft' | 'slideRight' | 'slideUp' | 'circleGrowth' | 'rotate' | 'basic' | Specifies the animation style of the button. |
variant | 'primary' | 'secondary' | 'outline' | 'ghost' | 'link' | 'primary' | Specifies the variant (appearance) of the button. |
onClick | () => void | undefined | Function to call when the button is clicked. |
...props | React.ButtonHTMLAttributes<HTMLButtonElement> | Additional props are passed to the underlying button element. |
{/* Basic Button */}
<Button>Basic Button</Button>
{/* Button with specified style and variant */}
<Button buttonStyle="basic" variant="primary">Primary Button</Button>
<Button buttonStyle="basic" variant="secondary">Secondary Button</Button>
<Button buttonStyle="basic" variant="outline">Outline Button</Button>
<Button buttonStyle="basic" variant="ghost">Ghost Button</Button>
<Button buttonStyle="basic" variant="link">Link Button</Button>
{/* Slide Bottom */}
<Button buttonStyle="slideBottom" variant="primary">Primary Button</Button>
<Button buttonStyle="slideBottom" variant="secondary">Secondary Button</Button>
<Button buttonStyle="slideBottom" variant="outline">Outline Button</Button>
<Button buttonStyle="slideBottom" variant="ghost">Ghost Button</Button>
<Button buttonStyle="slideBottom" variant="link">Link Button</Button>
{/*Slide Left*/}
<Button buttonStyle="slideLeft" variant="primary">Primary Button</Button>
<Button buttonStyle="slideLeft" variant="secondary">Secondary Button</Button>
<Button buttonStyle="slideLeft" variant="outline">Outline Button</Button>
<Button buttonStyle="slideLeft" variant="ghost">Ghost Button</Button>
<Button buttonStyle="slideLeft" variant="link">Link Button</Button>
{/*Slide Right*/}
<Button buttonStyle="slideRight" variant="primary">Primary Button</Button>
<Button buttonStyle="slideRight" variant="secondary">Secondary Button</Button>
<Button buttonStyle="slideRight" variant="outline">Outline Button</Button>
<Button buttonStyle="slideRight" variant="ghost">Ghost Button</Button>
<Button buttonStyle="slideRight" variant="link">Link Button</Button>
{/*Slide Up*/}
<Button buttonStyle="slideUp" variant="primary">Primary Button</Button>
<Button buttonStyle="slideUp" variant="secondary">Secondary Button</Button>
<Button buttonStyle="slideUp" variant="outline">Outline Button</Button>
<Button buttonStyle="slideUp" variant="ghost">Ghost Button</Button>
<Button buttonStyle="slideUp" variant="link">Link Button</Button>
{/*Circle Growth*/}
<Button buttonStyle="circleGrowth" variant="primary">Primary Button</Button>
<Button buttonStyle="circleGrowth" variant="secondary">Secondary Button</Button>
<Button buttonStyle="circleGrowth" variant="outline">Outline Button</Button>
<Button buttonStyle="circleGrowth" variant="ghost">Ghost Button</Button>
<Button buttonStyle="circleGrowth" variant="link">Link Button</Button>
{/*Rotate*/}
<Button buttonStyle="rotate" variant="primary">Primary Button</Button>
<Button buttonStyle="rotate" variant="secondary">Secondary Button</Button>
<Button buttonStyle="rotate" variant="outline">Outline Button</Button>
<Button buttonStyle="rotate" variant="ghost">Ghost Button</Button>
<Button buttonStyle="rotate" variant="link">Link Button</Button>
MIT
FAQs
A CLI tool for installing PixelBlock UI components.
The npm package @pixelblock/cli receives a total of 1 weekly downloads. As such, @pixelblock/cli popularity was classified as not popular.
We found that @pixelblock/cli demonstrated a healthy version release cadence and project activity because the last version was released less than 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.