@docxkit/plugin-badge
v0.5.0
Published
Status badges and labels — docx-kit plugin
Readme
@docxkit/plugin-badge
Status badges and labels plugin for docx-kit.
Usage
import { badgePlugin } from '@docxkit/plugin-badge'
builder.use(badgePlugin())
builder.plugin('badge', { text: 'DRAFT', color: 'warning' })Options
text: badge label textcolor: preset name (neutral,info,success,warning,danger) or custom text colorbackgroundColor: optional custom badge background color
