code-block-kit
plate/code-block-kitFreeComponent
plate publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by plate on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://platejs.org/r/code-block-kit.jsonSource
1'use client';23import { CodeBlockRules } from '@platejs/code-block';4import {5 CodeBlockPlugin,6 CodeLinePlugin,7 CodeSyntaxPlugin,8} from '@platejs/code-block/react';9import { all, createLowlight } from 'lowlight';1011import {12 CodeBlockElement,13 CodeLineElement,14 CodeSyntaxLeaf,15} from '@/registry/ui/code-block-node';1617const lowlight = createLowlight(all);1819export const CodeBlockKit = [20 CodeBlockPlugin.configure({21 inputRules: [CodeBlockRules.markdown({ on: 'match' })],22 node: { component: CodeBlockElement },23 options: { lowlight },24 shortcuts: { toggle: { keys: 'mod+alt+8' } },25 }),26 CodeLinePlugin.withComponent(CodeLineElement),27 CodeSyntaxPlugin.withComponent(CodeSyntaxLeaf),28];
What it pulls in
npm packages
Other registry items
Files it writes
More from plate
All 324 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| ai-kitai-kit | plate | Components | Free | 1 dep | |
| AI Menuai-menu | plate | Components | Free | 5 deps · 2 files | |
| AI Leafai-node | plate | Components | Free | no deps | |
| AI Toolbar Buttonai-toolbar-button | plate | Components | Free | 1 dep | |
| align-base-kitalign-base-kit | plate | Components | Free | 1 dep | |
| align-kitalign-kit | plate | Components | Free | 1 dep | |
| Align Toolbar Buttonalign-toolbar-button | plate | Components | Free | 1 dep | |
| autoformat-classic-kitautoformat-classic-kit | plate | Components | Free | 2 deps |
