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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help