Sha256: 48cf7829017eb50ecfc7e4cb8e49ae316785da3289572735cc6546c55a409527
Contents?: true
Size: 481 Bytes
Versions: 948
Compression:
Stored size: 481 Bytes
Contents
import React, { useState } from 'react' import { RichTextEditor } from 'playbook-ui' const RichTextEditorDefault = (props) => { const [value, setValue] = useState('Add your text here. You can format your text, add links, quotes, and bullets.'), handleOnChange = (html) => setValue(html) return ( <div> <RichTextEditor onChange={handleOnChange} value={value} {...props} /> </div> ) } export default RichTextEditorDefault
Version data entries
948 entries across 948 versions & 2 rubygems