4.9.4 • Published 8 months ago

@yoopta/divider v4.9.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Divider

Overview

Installation

yarn add @yoopta/divider

Elements

divider

  • props
  • color: string
  • theme: 'solid' | 'dashed' | 'dotted' | 'gradient'

Commands

export type DividerCommands = {
  buildDividerElements: (editor: YooEditor, options?: Partial<DividerElementProps>) => DividerElement,
  insertDivider: (editor: YooEditor, options?: Partial<DividerInsertOptions>) => void,
  deleteDivider: (editor: YooEditor, blockId: string) => void,
  updateDivider: (editor: YooEditor, blockId: string, props: Partial<DividerElementProps>) => void,
};

buildDividerElements

buildDividerElements: (editor: YooEditor, options?: Partial``) => DividerElement;

Define elements structure for slate value in your block

insertDivider

editor.methods.insertDivider(blockId: string, options?: Partial``) => void

Insert divider block in specific path with options

Options:

  • color: string
  • theme: 'solid' | 'dashed' | 'dotted' | 'gradient'

deleteDivider

deleteDivider: (editor: YooEditor, blockId: string) => void;

Delete divider block

updateDivider

updateDivider: (editor: YooEditor, blockId: string, props: Partial``) => void;

Update divider props

Options:

  • color: string
  • theme: 'solid' | 'dashed' | 'dotted' | 'gradient'

Hotkeys

OperationHotkey
Switch themes when block is focusedcmd+shift+d

Styling

ClassnameElement
yoopta-dividerRoot of divider
yoopta-divider-themeDivider element with specific theme
4.9.4

8 months ago

4.9.4-rc.1

8 months ago

4.9.4-rc.0

8 months ago

4.9.3

8 months ago

4.9.3-alpha.0

8 months ago

4.9.2

10 months ago

4.9.2-rc.0

10 months ago

4.9.2-rc.2

10 months ago

4.9.2-rc.1

10 months ago

4.9.0

10 months ago

4.8.5-rc.9

10 months ago

4.9.1

10 months ago

4.8.5-rc.10

10 months ago

4.8.5-rc.11

10 months ago

4.8.5-rc.7

10 months ago

4.8.5-rc.8

10 months ago

4.8.5-rc.6

10 months ago

4.8.5-rc.5

10 months ago

4.8.5-rc.4

10 months ago

4.8.4-rc.0

11 months ago

4.8.4

11 months ago

4.8.3

11 months ago

4.8.3-rc.0

11 months ago

4.8.2

11 months ago

4.8.1

11 months ago

4.8.0

11 months ago

4.7.1-rc.8

11 months ago

4.7.1-rc.7

11 months ago

4.7.1-rc.6

11 months ago

4.7.1-rc.4

11 months ago