Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@lightspeed/cirrus-button
Advanced tools
The most essential element of a user interface.
First, make sure you have been through the Getting Started steps of adding Cirrus in your application.
If using Yarn:
yarn add @lightspeed/cirrus-button
Or using npm:
npm i -S @lightspeed/cirrus-button
Import required styles in your .scss
:
@import '@lightspeed/cirrus-button/Button.css';
Prop | Type | Description |
---|---|---|
children | React.ReactNode | The content to display inside the button |
primary | boolean | Displays as success button |
secondary | boolean | Displays as secondary button |
danger | boolean | Displays as danger button |
fill | boolean | Displays as fill button |
size | enum['small', 'large', 'xlarge'] | Sets the size of the button |
block | boolean | Displays the button in full width |
disabled | boolean | Disables the button |
onClick | function | Callback when button is clicked |
onFocus | function | Callback when button is focused |
onBlur | function | Callback when button is blurred |
import React from 'react';
import Button from '@lightspeed/cirrus-button';
const MyComponent = () =>
<div>
<Button>My Button</Button>
</div>;
export default MyComponent;
Besides the base class .cr-button
you can use one of these classes:
Type | Class |
---|---|
primary | .cr-button--primary |
secondary | .cr-button--secondary |
danger | .cr-button--danger |
fill | .cr-button--fill |
block | .cr-button--block |
small | .cr-button--small |
large | .cr-button--large |
xlarge | .cr-button--xlarge |
disabled | .disabled |
<button type="button" class="cr-button">My Button</button>
FAQs
Cirrus Button Component
The npm package @lightspeed/cirrus-button receives a total of 89 weekly downloads. As such, @lightspeed/cirrus-button popularity was classified as not popular.
We found that @lightspeed/cirrus-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.