@zendeskgarden/react-textfields
This package includes components relating to textfields in the
Garden Design System.
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>;