@@ -230,3 +230,32 @@ This might seem like a lot of configuration, but we believe it to be worth it be
230230### Step 4: Find the components you need in the docs and copy/paste them into your project
231231
232232You will find the components code in their corresponding link in the docs.
233+
234+ ### Bonus step: add a barrel file to ~ /components/ui
235+
236+ ``` tsx
237+ export * from ' ./accordion/accordion' ;
238+ export * from ' ./alert/alert' ;
239+ export * from ' ./avatar/avatar' ;
240+ export * from ' ./badge/badge' ;
241+ export * from ' ./breadcrumb/breadcrumb' ;
242+ export * from ' ./button/button' ;
243+ export * from ' ./card/card' ;
244+ export * from ' ./checkbox/checkbox' ;
245+ export * from ' ./combobox/combobox' ;
246+ export * from ' ./input/input' ;
247+ export * from ' ./label/label' ;
248+ export * from ' ./modal/modal' ;
249+ export * from ' ./popover/popover' ;
250+ export * from ' ./progress/progress' ;
251+ export * from ' ./radio-group/radio-group' ;
252+ export * from ' ./separator/separator' ;
253+ export * from ' ./skeleton/skeleton' ;
254+ export * from ' ./tabs/tabs' ;
255+ export * from ' ./textarea/textarea' ;
256+ export * from ' ./select/select' ;
257+ ```
258+
259+ This way you can now ` import { Accordion, Alert, ... } from '~/components/ui'; ` 👯♀️
260+
261+ (** small tip:** you can commment out the components you don't use!)
0 commit comments