Complete Block
- from @localmode
- by LocalMode
Fill-mask word prediction via ModernBERT (top-5) with [MASK] authoring, ranked predictions (token, confidence score, confidence label, score bar) and a substituted full-sentence preview, and click-to-apply-and-iterate. This capability is Transformers.js-only — there is no Chrome AI fill-mask — and the badge says so. No model bytes download until an explicit in-block action.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/blocks/writing-tools/completeRegistry dependencies6
- @localmode/ui/lib/utils
- @localmode/ui/input-controls/mask-token-input
- @localmode/ui/results/scored-result-bar-list
- @localmode/ui/results/confidence-score-badge
- @localmode/ui/local-first/provider-badge
- @localmode/ui/results/error-alert
