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

9.6.0 • 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, 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>;

/@zendeskgarden/react-forms/

    Package Sidebar

    Install

    npm i @zendeskgarden/react-forms

    Weekly Downloads

    57,635

    Version

    9.6.0

    License

    Apache-2.0

    Unpacked Size

    457 kB

    Total Files

    200

    Last publish

    Collaborators

    • zendesk-garden