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.
@zendeskgarden/react-buttons
Advanced tools
Components relating to buttons in the Garden Design System
This package includes components relating to buttons in the Garden Design System.
npm install @zendeskgarden/react-buttons
# Peer Dependencies - Also Required
npm install react react-dom styled-components @zendeskgarden/react-theming
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Button } from '@zendeskgarden/react-buttons';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<>
<Button onClick={() => alert('clicked')}>Default</Button>
<Button isPrimary isDanger>
Primary danger button
</Button>
</>
</ThemeProvider>;
import React, { useState } from 'react';
import { Button } from '@zendeskgarden/react-buttons';
import StartIcon from '@zendeskgarden/icons/src/16/shield-stroke.svg';
import EndIcon from '@zendeskgarden/icons/src/16/chevron-down-stroke.svg';
const MediaButton = ({ children, ...props }) => {
const [isRotated, setRotated] = useState(false);
return (
<Button onClick={() => setRotated(!isRotated)} {...props}>
<Button.StartIcon>
<StartIcon />
</Button.StartIcon>
{children}
<Button.EndIcon isRotated={isRotated}>
<EndIcon />
</Button.EndIcon>
</Button>
);
};
v9.1.0 (2024-10-24)
datepickers
theming
.template
, accordions
, avatars
, breadcrumbs
, buttons
, chrome
, colorpickers
, datepickers
, draggable
, dropdowns.legacy
, dropdowns
, forms
, grid
, loaders
, modals
, notifications
, pagination
, tables
, tabs
, tags
, theming
, tooltips
, typography
dropdowns
dropdowns.legacy
, forms
accordions
, avatars
, buttons
, chrome
, datepickers
, draggable
, dropdowns.legacy
, dropdowns
, forms
, grid
, modals
, notifications
, tables
, tags
, theming
, typography
forms
buttons
chrome
forms
, typography
colorpickers
datepickers
accordions
, avatars
, breadcrumbs
, buttons
, chrome
, colorpickers
, datepickers
, draggable
, dropdowns
, forms
, modals
, notifications
, pagination
, tables
, tags
FAQs
Components relating to buttons in the Garden Design System
The npm package @zendeskgarden/react-buttons receives a total of 27,030 weekly downloads. As such, @zendeskgarden/react-buttons popularity was classified as popular.
We found that @zendeskgarden/react-buttons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.