A super smooth and customizable navigation progress bar for Svelte 5, powered by:
$state
, $derived
)Tween
)โ
Beautiful animated navigation progress
โ
Fully customizable ๐๏ธ (Size & Color Variants)
โ
Super optimized with Svelte 5 runes โก
โ
Smooth easing animations with cubicOut
๐ข
โ
No dependencies (except Tailwind utilities) ๐ฏ
If you're using this in a SvelteKit project, install the necessary dependencies first:
npm install @friendofsvelte/progress
<script>
import { Progress } from "@friendofsvelte/progress";
</script>
<Progress size="md" color="green" />
<script>
const size = "lg";
const color = "rose";
</script>
<Progress {size} {color} />
Variant | Height |
---|---|
"sm" |
0.5rem |
"md" (default) |
1rem |
"lg" |
1.5rem |
Variant | Gradient |
---|---|
"blue" |
from-sky-700 to-indigo-700 |
"rose" |
from-rose-700 to-rose-500 |
"amber" |
from-amber-700 to-amber-500 |
"green" |
from-green-700 to-green-500 |
"purple" |
from-purple-700 to-purple-500 |
"indigo" |
from-indigo-700 to-indigo-500 |
"red" |
from-red-700 to-red-500 |
"yellow" |
from-yellow-700 to-yellow-500 |
Sure! Here's a cute and fun way to let them know they can customize the navigation logic, but seriously, why would they? because this component is already perfect! ๐โจ
Okay, okayโwe get it. You love control. You want to tweak everything.
๐ Guess what? You can! If you're feeling adventurous, you can create your own progress component using let nav
state.
<script lang="ts">
type Nav = {
is_navigating: boolen,
progress: Tween,
}
import { nav } from "@friendofsvelte/progress";
</script>
<div custom-nav-progress ...></div>
But let's be realโ you probably wonโt need to.
Why? Because this component already does all the magic for you! ๐ชโจ
Unless you have some wild navigation setup (like, interdimensional travel? ๐), you can just sit back, relax, and let this super smooth, stylish progress bar do all the heavy lifting for you.
"Customization is great, but perfection is effortless. Let Progress do its thing." โ Some wise Svelte Wizard ๐งโโ๏ธ
Because who doesnโt love a beautiful, animated progress bar? ๐
It makes navigation feel smoother, more dynamic, and polished!
"Good UI is invisible, but you can definitely feel when it's missing!" ๐
๐ MIT โ use it however you like! Just give some love back โค๏ธ
๐ Found a bug or have an idea? Open an issue or PR โ Iโd love to see your improvements!