Skeleton Edit

Use to show a placeholder while content is loading.

Examples

Installation


  rails generate shadcn-ui skeleton

Usage

<%= render_skeleton %>

The Skeleton component introduces:

  • app/helpers/components/skeleton_helper.rb
  • app/views/components/ui/_skeleton.html.erb

render_skeleton will output the skeleton component.