@vericus/slate-kit-align

Plugins to provide a way to align blocks on slate

Usage no npm install needed!

<script type="module">
  import vericusSlateKitAlign from 'https://cdn.skypack.dev/@vericus/slate-kit-align';
</script>

README

@Vericus / Slate Kit Align

Plugins to provide a way to align blocks on slate

Documentation

Slate plugin that provides a way to align blocks for slate-kit. It accepts a few configurable options for what kind of blocks(floating/text) can be aligned and the dataField that it use to store the alignment position.

sample options:

{
  floatBlocks: [],
  textBlocks: [
    "paragraph",
    "heading-one",
    "heading-two",
    "heading-three",
    "heading-four"
  ],
  dataField: "textAlign"
}

License

MIT © slate-kit