@stedefast/plugin-reading-progress
v0.2.2
Published
Reading progress bar plugin for Stedefast — injects a thin fixed bar that fills as the user scrolls through content
Maintainers
Readme
@stedefast/plugin-reading-progress
Reading progress bar plugin for Stedefast — injects a thin progress bar at the top of the page that fills as the reader scrolls. Zero dependencies, ~200 bytes of inline JS.
Installation
pnpm add @stedefast/plugin-reading-progressUsage
// stedefast.config.ts
import { defineConfig } from "@stedefast/core";
import { ReadingProgressPlugin } from "@stedefast/plugin-reading-progress";
export default defineConfig({
plugins: [
ReadingProgressPlugin({
color: "#6366f1",
applyToTypes: ["post", "doc"],
}),
],
});Documentation
Full docs at stedefast.dev/docs/plugins/reading-progress.
License
MIT
