This package has been deprecated

Author message:

Package no longer supported. Use @zendeskgarden/react-forms instead.

@zendeskgarden/react-textfields

6.9.2 • Public • Published

@zendeskgarden/react-textfields npm version

This package includes components relating to textfields in the Garden Design System.

DEPRECATION WARNING

This package has been deprecated in favor of the API provided in the @zendeskgarden/react-forms package.

This package will stop receiving updates in a future major release.

Installation

npm install @zendeskgarden/react-textfields

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

Usage

/**
 * Include textfield styling at the root of your application
 */
import '@zendeskgarden/react-textfields/dist/styles.css';

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

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

Package Sidebar

Install

npm i @zendeskgarden/react-textfields

Weekly Downloads

301

Version

6.9.2

License

Apache-2.0

Unpacked Size

316 kB

Total Files

9

Last publish

Collaborators

  • zendesk-garden