Sha256: dab231270f9c88e2336a52989ea8eeaa756346e67613da9587fdaa7c8f500814
Contents?: true
Size: 855 Bytes
Versions: 948
Compression:
Stored size: 855 Bytes
Contents
import React, { useState } from 'react' import { RichTextEditor, Select } from 'playbook-ui' import { changelog, release } from './templates.js' const RichTextEditorTemplates = (props) => { 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} {...props} /> <RichTextEditor id="template" template={editorContent} {...props} /> </div> ) } export default RichTextEditorTemplates
Version data entries
948 entries across 948 versions & 2 rubygems