UNPKG

react-conventions

Version:

An open source set of React components that implement Ambassador's Design and UX patterns.

22 lines (17 loc) 474 B
import React from 'react' import InlineEdit from 'react-conventions/lib/InlineEdit' import styles from './styles' class ExampleInlineEditReadonly extends React.Component { constructor(props) { super(props) } state = { inlineValue: 'You can\'t click to edit me' } render = () => { return ( <InlineEdit name='test' value={this.state.inlineValue} placeholder='Custom Placeholder' readonly /> ) } } export default ExampleInlineEditReadonly