@vericus/slate-kit-highlight-text
Version:
plugin that provide a way to color/highlight a group of text on slate
29 lines (20 loc) • 885 B
Markdown
# [@Vericus / Highlight Text](https://github.com/Vericus/slate-kit/tree/master/packages/plugins-features-highlight-text)
> plugin that provide a way to color/highlight a group of text on slate
## Documentation
<!-- %docs
title: Highlight Text
-->
[Slate](https://github.com/ianstormtaylor/slate) plugin that provides a way to color/highlight a group of text on slate. The rendering of color/highlight is provided using configurable optional renderer [@vericus/slate-kit-highlight-text-renderer](https://github.com/Vericus/slate-kit/tree/master/packages/plugins-renderer-highlight-text)
```js
{
type: "textBackground",
alpha: 0.54,
data: "backgroundColor",
defaultColor: "transparent",
styles: ["backgroundColor"],
externalRenderer: false
}
```
<!-- %enddocs -->
## License
[MIT](./LICENSE.txt) © [`slate-kit`](https://github.com/Vericus/slate-kit)