Progress Edit

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

Examples

Installation


  rails generate shadcn-ui progress

Usage

<%= render_progress value: %>

The Progress component introduces:

  • app/helpers/components/progress_helper.rb
  • app/views/components/ui/_progress.html.erb

The method render_progress defined in app/helpers/components/progress_helper.rb accepts one keyword arguments for the percentage of the progress bar.