Ritext
Extensions

Horizontal Rule

Insert a horizontal divider line.

The HorizontalRule extension adds a button to insert a horizontal rule (<hr>) into the document.

Import

import { HorizontalRule } from 'ritext/extension/horizontalrule';

Usage

const extensions = [HorizontalRule];

Options

Prop

Type

The Horizontal Rule button has no active state — it always appears in its default style.

On this page