Rendering Samples with Showcase for Ruby on Rails
blog.appsignal.com·19h·
Discuss: Hacker News
Flag this post

In parts one and two of this series, we familiarized ourselves with the ins and outs of Showcase.

Now, we’ll dive into samples, Showcase’s main feature. Samples show how a component can be used in a real application.

Samples in our Ruby App

In our case, we have two samples, one for a small button and one for a large button:

Showcase button samples

Let’s look at how the samples are rendered. We’ll add one sample back to our preview file:

If we refresh the page in our browser, it should look like this:

Showcase large button sample

Sample Met…

Similar Posts

Loading similar posts...