import * as React from 'react'; import * as System from '~/components/system'; import Group from '~/components/system/Group'; import SystemPage from '~/components/system/SystemPage'; import ViewSourceLink from '~/components/system/ViewSourceLink'; export default class SystemPageInputs extends React.Component { state = { twelve: 'Replace me friend.', thirteen: '', fourteen: '', fifteen: 'aaaaa-bbbbb-ccccc-ddddd-eeee', sixteen: '', seventeen: `Example text`, }; _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.

Usage

Define the Input value states and handle the state change the when a change is made.
{`state = { twelve: 'Replace me friend.', thirteen: '', fourteen: '', fifteen: 'aaaaa-bbbbb-ccccc-ddddd-eeee', sixteen: '', seventeen: 'Example text', }; _handleChange = (e) => { this.setState({ [e.target.name]: e.target.value }); };`}


Textarea

Declare the Textarea component.

{``}


Input with label and description

Declare the Input component with a label and description value.

{``}


Input with max length

Declare the Input component with the maximum number of characters allowed.

{``}


Input with copy and paste

Declare the Input component with copyable.

{``}


Input with validation

Declare the Input component with validation.





{` `}


Props

); } }