Sha256: 48cf7829017eb50ecfc7e4cb8e49ae316785da3289572735cc6546c55a409527

Contents?: true

Size: 481 Bytes

Versions: 953

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

953 entries across 953 versions & 2 rubygems

Version Path
playbook_ui-14.2.0.pre.alpha.play1432playgroundsanitation3622 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.2.0.pre.alpha.PLAY15063621 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.2.0.pre.alpha.PLAY15063621 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.2.0.pre.alpha.PLAY15063620 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.2.0.pre.alpha.PLAY15063620 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.2.0.pre.alpha.PLAY15063619 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.2.0.pre.alpha.PLAY15063619 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.2.0.pre.alpha.PLAY15063618 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.2.0.pre.alpha.PLAY15063618 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.3.0.pre.rc.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.3.0.pre.rc.0 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.1.0.pre.alpha.PLAY15063617 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.1.0.pre.alpha.PLAY15063617 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.1.0.pre.alpha.PLAY15063616 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.1.0.pre.alpha.PLAY15063616 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.1.0.pre.alpha.PLAY15063615 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.1.0.pre.alpha.PLAY15063615 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.1.0.pre.alpha.PLAY15063614 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui-14.1.0.pre.alpha.PLAY15063614 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
playbook_ui_docs-14.1.0.pre.alpha.PLAY15063613 app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx