progress Svelte Themes

Progress

Simple quick progress bar in svelte 5

Svelte 5 Navigation Progress Bar ๐Ÿš€

A super smooth and customizable navigation progress bar for Svelte 5, powered by:

  • ๐ŸŒ€ Svelte 5 Runes ($state, $derived)
  • ๐ŸŒŠ svelte/motion (Tween)
  • ๐ŸŽจ TailwindCSS v4
  • ๐Ÿ”ฎ tailwind-variants & tailwind-merge for ultimate styling flexibility.

โœจ Features

โœ… 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) ๐ŸŽฏ


๐Ÿ“ธ Preview


๐Ÿš€ Installation

If you're using this in a SvelteKit project, install the necessary dependencies first:

npm install @friendofsvelte/progress

๐Ÿ› ๏ธ Usage

Import the component & customize it!

<script>
    import { Progress } from "@friendofsvelte/progress";
</script>

<Progress size="md" color="green" />

You can also control it dynamically:

<script>
    const size = "lg";
    const color = "rose";
</script>

<Progress {size} {color} />

๐ŸŽจ Customization

๐ŸŒŸ Sizes

Variant Height
"sm" 0.5rem
"md" (default) 1rem
"lg" 1.5rem

๐ŸŒˆ Colors

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! ๐Ÿ˜Žโœจ


๐ŸŽจ Custom component (but like, do you even need to?) ๐Ÿ’…

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 ๐Ÿง™โ€โ™‚๏ธ

๐Ÿ’– Why Use This?

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!" ๐Ÿš€


๐Ÿ“œ License

๐Ÿ“ MIT โ€“ use it however you like! Just give some love back โค๏ธ


๐Ÿค Contributing

๐Ÿ‘‹ Found a bug or have an idea? Open an issue or PR โ€“ Iโ€™d love to see your improvements!

Top categories

Loading Svelte Themes