Get free access to pre-built, Tailwind CSS-powered components, animations and effects - brought to life using Framer Motion. Just copy, paste and you're ready to go!
I would love the ability to override the preview for the ComponentPreview component.
The default preview works great for standalone components (ex: buttons, toggles, etc.).
But, for non-standalone components (ex: cards, containers, or effects) that are dependent on children to display properly, it would be beneficial to provide a preview through the ComponentPreview component.
Motivation 🌟
in src/showcase/ui-group/EffectCards.tsx I specify a custom preview that is displayed in the card. this is because the BorderGlow effect is just a container that accepts children to be easily used for people taking the code.
This also means that when ComponentPreview loads the component it displays as a small empty oval which is incorrect. But, if we add this optional preview then I can reference it in the docs like this:
Feature Description 📝
I would love the ability to override the
preview
for theComponentPreview
component.The default preview works great for standalone components (ex: buttons, toggles, etc.).
But, for non-standalone components (ex: cards, containers, or effects) that are dependent on children to display properly, it would be beneficial to provide a preview through the
ComponentPreview
component.Motivation 🌟
in
src/showcase/ui-group/EffectCards.tsx
I specify a custom preview that is displayed in the card. this is because the BorderGlow effect is just a container that accepts children to be easily used for people taking the code.This also means that when ComponentPreview loads the component it displays as a small empty oval which is incorrect. But, if we add this optional preview then I can reference it in the docs like this:
Expected Behavior 🤔
Additional Information ℹ️
No response