plate
componentalign-base-kitsource: ok · hit
Align Base Kit
npx shadcn add "https://platejs.org/r/align-base-kit.json"free
No selection tags yet — empty means no evidence, not lack of support.
Dependencies
Bundle weight · light@platejs/basic-styles
Files1 · source cached 10/9/2026, 3:01:30 AM
src/registry/components/editor/plugins/align-base-kit.tsx
import { BaseTextAlignPlugin } from '@platejs/basic-styles';
import { KEYS } from 'platejs';
export const BaseAlignKit = [
BaseTextAlignPlugin.configure({
inject: {
nodeProps: {
defaultNodeValue: 'start',
nodeKey: 'align',
styleKey: 'textAlign',
validNodeValues: ['start', 'left', 'center', 'right', 'end', 'justify'],
},
targetPlugins: [...KEYS.heading, KEYS.p, KEYS.img, KEYS.mediaEmbed],
},
}),
];