@zendeskgarden/react-forms
This package includes components relating to native form fields in the
Garden Design System.
Installation
npm install @zendeskgarden/react-forms
npm install react react-dom styled-components @zendeskgarden/react-theming
Usage
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Field, Input } from '@zendeskgarden/react-forms';
<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>;