Security News
Supply Chain Attack Detected in @solana/web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@zendeskgarden/react-forms
Advanced tools
Components relating to form elements in the Garden Design System
@zendeskgarden/react-forms is a package that provides a set of accessible and customizable form components for React applications. It is part of the Zendesk Garden design system, which aims to offer a consistent and visually appealing user interface.
Text Input
The TextInput component allows users to input text data. It is customizable and can be styled according to the application's needs.
<TextInput placeholder='Enter text' />
Checkbox
The Checkbox component provides a way for users to make binary choices. It includes a label for accessibility and can be styled to fit the application's design.
<Checkbox label='Accept terms and conditions' />
Radio Button
The RadioGroup and Radio components allow users to select one option from a set. They are grouped together to ensure only one option can be selected at a time.
<RadioGroup name='options'><Radio label='Option 1' /><Radio label='Option 2' /></RadioGroup>
Select Dropdown
The Select component provides a dropdown menu for users to choose from multiple options. It is useful for forms where space is limited.
<Select><Option value='1'>Option 1</Option><Option value='2'>Option 2</Option></Select>
Formik is a popular library for building forms in React. It provides a comprehensive set of tools for managing form state, validation, and submission. Compared to @zendeskgarden/react-forms, Formik offers more advanced form management capabilities but does not include pre-styled components.
React Hook Form is a performant and flexible library for handling form state and validation in React. It is known for its minimal re-renders and ease of integration with existing components. Unlike @zendeskgarden/react-forms, it focuses on form logic rather than UI components.
React Final Form is a library for managing form state in React applications. It is lightweight and provides a simple API for handling form data and validation. While it does not offer pre-styled components like @zendeskgarden/react-forms, it excels in form state management.
This package includes components relating to native form fields in the Garden Design System.
npm install @zendeskgarden/react-forms
# Peer Dependencies - Also Required
npm install react react-dom styled-components @zendeskgarden/react-theming
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Field, Input } from '@zendeskgarden/react-forms';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<form>
<Field>
<Field.Label>Example Text Input</Field.Label>
<Field.Hint>Hint text</Field.Hint>
<Input placeholder="Accepts all native input props" />
<Field.Message>Default message styling</Field.Message>
</Field>
</form>
</ThemeProvider>;
v9.0.0-next.21 (2024-08-12)
FAQs
Components relating to form elements in the Garden Design System
The npm package @zendeskgarden/react-forms receives a total of 88,958 weekly downloads. As such, @zendeskgarden/react-forms popularity was classified as popular.
We found that @zendeskgarden/react-forms 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.