import * as React from "react"; import * as System from "~/components/system"; import * as Constants from "~/common/constants"; import * as SVG from "~/common/svg"; import Group from "~/components/system/Group"; import SystemPage from "~/components/system/SystemPage"; import ViewSourceLink from "~/components/system/ViewSourceLink"; import CodeBlock from "~/components/system/CodeBlock"; export default class SystemPageInputs extends React.Component { state = { exampleOne: "Example text", exampleTwo: "", exampleThree: "", exampleFour: "aaaaa-bbbbb-ccccc-ddddd-eeee", exampleFive: "Click the 'x'", }; _handleChange = (e) => { this.setState({ [e.target.name]: e.target.value }); }; render() { return ( Inputs

The Input component is used to get a users input in a text field or a textbox.


Imports

Import React and the Input and/or the Textarea Components.

{`import * as React from "react"; import { Input, Textarea } from "slate-react-system";`}

Textarea

Declare the Textarea component.

{`class ExampleTextarea extends React.Component { state = { exampleOne: "Example text" }; _handleChange = (e) => this.setState({ [e.target.name]: e.target.value }); render() { return (