@zendeskgarden/react-forms
TypeScript icon, indicating that this package has built-in type declarations

8.76.1 • Public • Published

@zendeskgarden/react-forms npm version

This package includes components relating to native form fields in the Garden Design System.

Installation

npm install @zendeskgarden/react-forms

# Peer Dependencies - Also Required
npm install react react-dom styled-components @zendeskgarden/react-theming

Usage

import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Field, Label, Hint, Input, Message } from '@zendeskgarden/react-forms';

/**
 * Place a `ThemeProvider` at the root of your React application
 */
<ThemeProvider>
  <form>
    <Field>
      <Label>Example Text Input</Label>
      <Hint>Hint text</Hint>
      <Input placeholder="Accepts all native input props" />
      <Message>Default message styling</Message>
    </Field>
  </form>
</ThemeProvider>;

Dependents (6)

Package Sidebar

Install

npm i @zendeskgarden/react-forms

Weekly Downloads

6,323

Version

8.76.1

License

Apache-2.0

Unpacked Size

440 kB

Total Files

208

Last publish

Collaborators

  • zendesk-garden