platejs

Link Base Kit

Text

About

A Plate editor base plugin kit that enables static, server-side rendering of hyperlinks in rich text content.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Link Base Kit to your project and fits it to your theme.

Code

How Link Base Kit is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import * as React from "react";

import BaseLinkKit from "@/components/ui/link-base-kit";

import { createSlateEditor } from "platejs";
import { PlateStatic } from "platejs/static";

const editor = createSlateEditor({
  plugins: BaseLinkKit,
  value: [
    {
      type: "p",
      children: [
        { text: "Read the " },
        {
          type: "a",
          url: "https://platejs.org",
          children: [{ text: "Plate documentation" }],
        },
        { text: " to learn more about building rich text editors." },
      ],
    },
  ],
});

export default function LinkBaseKitDemo() {
  return (
    <div className="p-6 text-foreground">
      <PlateStatic editor={editor} />
    </div>
  );
}

Dependencies

More by platejs

View all
  • Math Base Kit

    Math Base Kit

    15
  • Highlight Leaf

    Highlight Leaf

    6
  • Cursor Overlay

    Cursor Overlay

    5
  • Editor

    Editor

    4
  • Link Element

    Link Element

    3
  • Resize Handle

    Resize Handle

    3
  • Keyboard Input Leaf

    Keyboard Input Leaf

    2
  • Inline Combobox

    Inline Combobox

    1

More in Text

View all
  • Motion Blur Text

    Motion Blur Text

    41
  • Text Reveal

    Text Reveal

    32
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    124
  • Rainbow Text Effect

    Rainbow Text Effect

    52
  • Shine Border

    Shine Border

    983
  • NeonRGBTextEffect

    NeonRGBTextEffect

    152
  • Toolbar

    Toolbar

    49
  • Apple Hello Effect

    Apple Hello Effect

    640