TextArea
TextArea
is a field that accepts multiple lines of text.
const TextAreaExample = () => (
<Form submit={() => {}}>
<TextArea name="textarea" value="default value" label="Text area" required />
</Form>
);
Props
name
(string, required): This will map to the key in the formlabel
(string): This will be displayed near the fieldrequired
(bool): Will tell the field to display a required star next to the labelvalidator
(func): a validator functionvalue
(string): This is the default value of the field