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

Version Path
playbook_ui_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx