sc-react-ions
Version:
An open source set of React components that implement Ambassador's Design and UX patterns.
12 lines (9 loc) • 329 B
JavaScript
import React from 'react'
import TextEditor from 'react-ions/lib/components/TextEditor'
const changeCallback = event => {
console.log(event.target.value)
}
const ExampleTextEditorCallback = () => (
<TextEditor changeCallback={changeCallback} placeholder='I have a callback...' />
)
export default ExampleTextEditorCallback