New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yoopta/divider

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yoopta/divider

Divider plugin for Yoopta Editor

4.9.4
latest
Source
npm
Version published
Weekly downloads
1K
-0.1%
Maintainers
0
Weekly downloads
 
Created
Source

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-[theme]Divider element with specific theme

FAQs

Package last updated on 01 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts