Closed darkterminal closed 1 year ago
If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our GitHub Organisation - we help and encourage each other to contribute to open source little and often :neckbeard:. Any questions let us know.
The Back Story about your Javascript Metaphor
I was super thrilled when I found out about Shadcn-UI, and guess what? It's NOT just another component library. It's a collection of reusable components that you can simply copy and paste into your app.
OhMyPunk! It's going to be so much fun creating a user interface with tools made by fellow Punks.
The javascript Story!
I don't want to beat around the bush too much this time because this is an extraordinary story for me.
To create a sidebar and collapsible menu using Shadcn UI, we need to define a type (yeah, let's use TypeScript, whatever you say!)
The Sidebar Definition
With the above definition, we will achieve something unforgettable about the experience of creating sidebar navigation along with a collapsible menu using just an
Array
ofObject
.Get The Accordion
After writing the sidebar definition, we need to copy & paste the
accordion
component from Shadcn UI using the following command:The Sidebar Component
OhMyPunk! Let me tell you a little story about this magical thing called the Sidebar! So, imagine this: I stumbled upon a whimsical place called Shadcn UI - Examples - Music, and it was like stepping into a sweet bakery full of delicious treats. Now, with a sprinkle of imagination and a dash of creativity, I took that Sidebar component and transformed it into something truly scrumptious, just like kneading dough for a delightful cake. It was like giving it a life of its own, ready to add a pinch of charm to any project. Oh, the wonders we can create with a little bit of inspiration and a touch of magic!
The Little Secret Sauce
But hey, here's a little secret sauce! While we're on the topic, let me spill the beans about a little tweak I made. I couldn't resist giving some love to the
button.tsx
file nestled snugly in the cozy folder ofcomponents/ui
. It was like giving it a fashionable makeover, adding a sprinkle of pizzazz and a dash of flair. Trust me, it's the kind of modification that makes you want to do a little happy dance. So, keep your eyes peeled for that delightful surprise when you delve into the magical world of code!Usage
Time to put our creation to the test and bring it to life! After following those steps above, it's now time to unleash our masterpiece into the wild. Get ready to work your magic story and implement what we've cooked up so far, just like following a scrumptious recipe. Remember, you're the master chef here, so trust your instincts and let your creativity shine. Brace yourself for the excitement as you witness your creation come alive in all its glory.
A Javascript demo/repos link
No response
PayPal Link for Donation (Javascript Storyteller)
No response