UNPKG

vcc-ui

Version:

VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.

36 lines (31 loc) 548 B
A simple textarea field ### Default example ```jsx live=true () => { const [value, setValue] = React.useState(""); return ( <TextArea value={value} placeholder={"Type something here"} onChange={e => { setValue(e.target.value); }} /> ); }; ``` ### Invalid state ```jsx live=true () => { const [value, setValue] = React.useState("Some text..."); return ( <TextArea value={value} isValid={false} onChange={e => { setValue(e.target.value); }} /> ); }; ```