Skip to content

feat: add component showcase at the top of the page#106

Merged
lucasadsr merged 15 commits intopittaya-ui:developfrom
marciosobel:main
Jan 26, 2026
Merged

feat: add component showcase at the top of the page#106
lucasadsr merged 15 commits intopittaya-ui:developfrom
marciosobel:main

Conversation

@marciosobel
Copy link
Contributor

@marciosobel marciosobel commented Jan 24, 2026

While looking through the components, I missed being presented with the component. I do believe having the component right at the top would show people what they are adding to their projects, and is a decisive factor wheter they will install the lib or not.

This PR adds a new type: DocShowcase: similar to DocExample, it contains a code and preview properties, used to render each component.

I first thought about using the first example of each component, but felt like some components needed custom showcases (such as CopyButton and Carousel).

Here's how it looked before:
image

Here's how it looks with this PR:
image

@vercel
Copy link

vercel bot commented Jan 24, 2026

@marciosobel is attempting to deploy a commit to the Lucas Ribeiro's projects Team on Vercel.

A member of the Team first needs to authorize it.

@lucasadsr lucasadsr changed the base branch from main to develop January 26, 2026 13:34
Copy link
Member

@lucasadsr lucasadsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lucasadsr lucasadsr merged commit a20be99 into pittaya-ui:develop Jan 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants