search results:

    • Standard
    • React
    Learn Community
    • + D
    • Light
    • Dark
    • System
    License Pricing
    logo TW Elements
    • Getting started
      • Quick start
      • Tutorials
      • Design system
      • Local installation
      • Optimization
      • Dark mode
      • Theming
      • Changelog
      • Contribute
      • Internationalization guide
    • CommercialNew
      • Pricing
      • License
      • Premium Support
    • Integrations
      • Angular
      • Django
      • Express
      • Laravel
      • Next
      • Nuxt
      • React
      • Remix
      • Solid
      • Svelte
      • SvelteKit
      • Vue
    • Content & styles
      • Animations
      • Animations Extended
      • Colors
      • Dividers
      • Figures
      • Headings
      • Hover effects
      • Icons
      • Images
      • Mask
      • Shadows
      • Typography
    • Navigation
      • Breadcrumbs
      • Footer
      • Headers
      • Mega menu
      • Navbar
      • Offcanvas
      • Pagination
      • Pills
      • Scrollspy
      • Sidenav
      • Tabs
    • Components
      • Accordion
      • Alerts
      • Avatar
      • Badges
      • Button group
      • Buttons
      • Cards
      • Carousel
      • Chips
      • Collapse
      • Dropdown
      • Gallery
      • Jumbotron
      • Lightbox
      • Link
      • List group
      • Modal
      • Notifications
      • Paragraphs
      • Placeholders
      • Popconfirm
      • Popover
      • Progress
      • Rating
      • Scroll back to top button
      • Social buttons
      • Spinners
      • Stepper
      • Testimonials
      • Timeline
      • Toast
      • Tooltip
      • Video
      • Video carousel
    • Forms
      • Autocomplete
      • Checkbox
      • Datepicker
      • Datetimepicker
      • File input
      • Form templates
      • Input Group
      • Inputs
      • Login form
      • Multi range slider
      • Radio
      • Range
      • Registration form
      • Search
      • Select
      • Switch
      • Textarea
      • Timepicker
      • Validation
    • Data
      • Charts
      • Charts advanced
      • Datatables
      • Tables
    • Methods
      • Clipboard
      • Infinite scroll
      • Lazy loading
      • Loading management
      • Ripple
      • Scrollbar
      • Smooth scroll
      • Sticky
      • Touch
    • Design Blocks
      • Banners
      • Contact
      • Content
      • CTA
      • FAQ
      • Features
      • Headers
      • Hero / Intro sections
      • Logo clouds
      • Mega menu
      • News
      • Newsletter
      • Pricing
      • Projects
      • Stats
      • Team
      • Testimonials
    • Tools
      • Button generator
      • Card generator
      • Flexbox generator
      • Footer generator
      • Form builder
      • Grid generator
      • Icon generator
      • Instagram Filters generator
      • Logo generator
      • Table generator
      • Typography generator
    • Coming Soon
      • Angular
      • Builder
      • Templates
      • Vue
    • Resources
      • Playground
      • YouTube Channel
      • Private FB Group
      • Newsletter
      • UI Design course New
      • UI / UX tips

    Progress bar

    Tailwind CSS Progress Bar

    Use responsive progress component with helper examples for progress ui, progress bar, progress bar steps, colors & more. Free download, open-source license.


    Basic example

    The progress component is mainly used to indicate the progress of a task, usually displayed as a progress bar.

    Use a progress bar element to display a percentage completion rate by using an inline style and the utility classes.

    • HTML
            
                
          <div class="h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-primary" style="width: 45%"></div>
          </div>
          
            
        

    Hey there 👋 we want to make TW elements a community-driven project. It's open source and free, and we would like it to stay that way. If you enjoy it, help the project grow by sharing it with your peers. Every share counts, thank you!

    Share via Dev.to Share via Twitter Share via Facebook Share via Pinterest Share via Reddit Share via StumbleUpon Share via Vkontakte Share via Weibo Share via HackerNews Share via Gmail Share via Email

    Width

    Change the width style property to your level of progress completion.

    • HTML
            
                
          <div class="mb-6 h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-primary" style="width: 0%"></div>
          </div>
          <div class="mb-6 h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-primary" style="width: 25%"></div>
          </div>
          <div class="mb-6 h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-primary" style="width: 50%"></div>
          </div>
          <div class="mb-6 h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-primary" style="width: 75%"></div>
          </div>
          <div class="h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-primary" style="width: 100%"></div>
          </div>
          
            
        

    Labels

    Use a progress bar with the label inside the bar.

    25%
    • HTML
            
                
          <div class="w-full bg-neutral-200 dark:bg-neutral-600">
            <div
              class="bg-primary p-0.5 text-center text-xs font-medium leading-none text-primary-100"
              style="width: 25%">
              25%
            </div>
          </div>
          
            
        

    Height

    Use different sizes by with various sizing utility classes.

    • HTML
            
                
          <div class="mb-6 h-px w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-px bg-primary" style="width: 25%"></div>
          </div>
          <div class="mb-6 h-5 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-5 bg-primary" style="width: 25%"></div>
          </div>
          
            
        

    Colors

    To apply different colors to your progress bars, just add the .bg-green-500, .bg-primary-500, .bg-yellow-500 or .bg-red-500 class.

    • HTML
            
                
          <div class="mb-6 h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-green-500" style="width: 25%"></div>
          </div>
          <div class="mb-6 h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-primary-400" style="width: 50%"></div>
          </div>
          <div class="mb-6 h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-yellow-500" style="width: 75%"></div>
          </div>
          <div class="h-1 w-full bg-neutral-200 dark:bg-neutral-600">
            <div class="h-1 bg-red-600" style="width: 100%"></div>
          </div>
          
            
        

    Related resources

    Tutorials:

    colors dark mode utility first rounded corners sizing

    Extended Docs:

    colors pagination scroll back to top button stepper timeline range box sizing center grid items center text color picker display flex letter spacing position spacing

    Design System (Figma):

    introduction size matters let it breathe user experience do not start with the roof design system plan the process principles tips and tricks
    • Basic example
    • Width
    • Labels
    • Height
    • Colors
    • Related resources
    Get useful tips & free resources directly to your inbox along with exclusive subscriber-only content.
    Join our mailing list now
    © 2023 Copyright: MDBootstrap.com