Sha256: 6a3f65d91679556d3180f6efaf1d1eb394fa99f979097273420cb197046a8910
Contents?: true
Size: 803 Bytes
Versions: 10
Compression:
Stored size: 803 Bytes
Contents
import React, { useState } from 'react' import { RichTextEditor, Select } from '../../' import { changelog, release } from './templates.js' const RichTextEditorTemplates = () => { const [editorContent, setEditorContent] = useState('') const handleChange = (event) => { setEditorContent(event.target.value) } const options = [ { value: release, text: 'Playbook Release', }, { value: changelog, text: 'Changelog', }, ] return ( <div> <Select blankSelection="Select a template..." label="Template" onChange={handleChange} options={options} /> <RichTextEditor id="template" template={editorContent} /> </div> ) } export default RichTextEditorTemplates
Version data entries
10 entries across 10 versions & 1 rubygems