quill-icons
Editor icons extract from quill editor, with React component wrapper, support 65+ icons!
Installation
$ npm install --save quill-icons
Usage
var quillIcons = require('quill-icons');
// icons options see ./src/icons
// USAGE:
<quillIcons.AlignCenter/> // React element
Icons support: https://canner.github.io/quill-icons/
Props
You could customized stroke, fill, etc... class names, just pass as props.
export default {
strokeClassName: 'ql-stroke',
fillClassName: 'ql-fill',
evenClassName: 'ql-even',
colorLabelClassName: 'ql-color-label',
transparentClassName: 'ql-transparent',
strokeMitterClassName: 'ql-stroke-mitter',
thinClassName: 'ql-thin',
width: '18px',
height: '18px'
};
Start example server
npm start
Related projects
- https://github.com/Canner/slate-editor-icons
- https://github.com/Canner/canner-slate-editor
- https://github.com/Canner/slate-toolbar
License
BSD-3-Clause © Canner
Big thanks to Quilljs
Icons license see Quill License