@zendeskgarden/react-textfields ![npm version](https://img.shields.io/npm/v/@zendeskgarden/react-textfields.svg?style=flat-square)
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
npm install react react-dom prop-types styled-components @zendeskgarden/react-theming
Usage
import '@zendeskgarden/react-textfields/dist/styles.css';
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { TextField, Label, Hint, Input, Message } from '@zendeskgarden/react-textfields';
<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>;