Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@zendeskgarden/react-buttons
Advanced tools
Components relating to buttons in the Garden Design System
@zendeskgarden/react-buttons is a package that provides a set of accessible and customizable button components for React applications. It is part of the Zendesk Garden design system, which aims to offer a consistent and cohesive set of UI components.
Basic Button
This is a basic button component that can be used to trigger actions in a React application. It is styled according to the Zendesk Garden design system.
<Button>Click me</Button>
Button Sizes
The package provides buttons in different sizes, allowing developers to choose the appropriate size for their UI needs.
<Button size="small">Small Button</Button>
<Button size="large">Large Button</Button>
Button Variants
Different button variants are available, such as primary and danger, to convey different actions or states to the user.
<Button isPrimary>Primary Button</Button>
<Button isDanger>Danger Button</Button>
Icon Buttons
Icon buttons are available for actions that can be represented with an icon, providing a more compact and visually appealing option.
<IconButton aria-label="Settings"><SettingsIcon /></IconButton>
React-Bootstrap is a popular library that provides Bootstrap components as React components. It offers a wide range of button styles and sizes similar to @zendeskgarden/react-buttons, but with the Bootstrap design system.
Material-UI (now MUI) is a comprehensive library of React components that implement Google's Material Design. It offers a variety of button components with extensive customization options, similar to @zendeskgarden/react-buttons, but follows the Material Design guidelines.
Chakra UI is a modern React component library that provides a set of accessible and composable components, including buttons. It offers similar functionality to @zendeskgarden/react-buttons with a focus on simplicity and ease of use.
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.0.0-next.27 (2024-09-26)
loaders
, theming
dropdowns
colorpickers
, modals
, theming
avatars
, colorpickers
breadcrumbs
FAQs
Components relating to buttons in the Garden Design System
The npm package @zendeskgarden/react-buttons receives a total of 220,507 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.