File tree Expand file tree Collapse file tree 9 files changed +62
-4
lines changed Expand file tree Collapse file tree 9 files changed +62
-4
lines changed Original file line number Diff line number Diff line change
1
+ > ⚠️ This guide is old and may not be still relevant! I'll update this soon. 🙏
2
+
1
3
# Contributing to RetroUI
2
4
3
5
Thank you for your interest in contributing to RetroUI 🙏. I hope this guide to help you get started.
Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ interface IComponentShowcase extends HTMLAttributes<HTMLDivElement> {
9
9
export function ComponentShowcase ( { name } : IComponentShowcase ) {
10
10
const { preview : Preview , codeHtml } = componentConfig . registry [ name ] ;
11
11
return (
12
- < div >
12
+ < div className = "space-y-6" >
13
13
< div >
14
14
< H5 > Preview</ H5 >
15
- < div className = "border rounded p-6" >
15
+ < div className = "mt-2 border rounded p-6" >
16
16
< Preview />
17
17
</ div >
18
18
</ div >
19
19
20
20
< div >
21
21
< H5 > Code</ H5 >
22
- < div className = "border relative rounded p-4 bg-[#222222] text-zinc-200" >
22
+ < div className = "mt-2 border relative rounded p-6 bg-[#222222] text-zinc-200 overflow-auto " >
23
23
< code >
24
24
< pre > { codeHtml } </ pre >
25
25
</ code >
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export const componentConfig = {
59
59
} ,
60
60
"button-style-default" : {
61
61
name : "button-style-default" ,
62
- preview : lazy ( ( ) => import ( "@/preview/components/badge -style-default" ) ) ,
62
+ preview : lazy ( ( ) => import ( "@/preview/components/button -style-default" ) ) ,
63
63
codeHtml : `<button className="bg-primary-400 text-black px-6 py-2 text-base font-head border-2 border-black shadow-md hover:shadow-xs hover:bg-primary-500 transition-all">
64
64
Click Me!
65
65
</button>` ,
@@ -79,6 +79,15 @@ export const componentConfig = {
79
79
type="text"
80
80
placeholder="type something..."
81
81
className="px-4 py-2 w-full border-2 border-black shadow-md transition focus:outline-none focus:shadow-xs"
82
+ />` ,
83
+ } ,
84
+ "textarea-style-default" : {
85
+ name : "textarea-style-default" ,
86
+ preview : lazy ( ( ) => import ( "@/preview/components/textarea-style-default" ) ) ,
87
+ codeHtml : `<textarea
88
+ placeholder="Enter text..."
89
+ rows="4"
90
+ class="px-4 py-2 w-full border-2 border-black shadow-md transition focus:outline-none focus:shadow-xs"
82
91
/>` ,
83
92
} ,
84
93
} ,
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Default Button
3
+ description : This bold button makes sure your users click on it and perform the actions you want! 🚀
4
+ lastUpdated : 30 Sep, 2024
5
+ ---
6
+
7
+ import {ComponentShowcase } from " @/components"
8
+
9
+ <ComponentShowcase name = " button-style-default" />
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Default Button
3
+ description : This bold button makes sure your users click on it and perform the actions you want! 🚀
4
+ lastUpdated : 30 Sep, 2024
5
+ ---
6
+
7
+ import {ComponentShowcase } from " @/components"
8
+
9
+ <ComponentShowcase name = " card-style-default" />
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Default Button
3
+ description : This bold button makes sure your users click on it and perform the actions you want! 🚀
4
+ lastUpdated : 30 Sep, 2024
5
+ ---
6
+
7
+ import {ComponentShowcase } from " @/components"
8
+
9
+ <ComponentShowcase name = " input-style-default" />
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Default Button
3
+ description : This bold button makes sure your users click on it and perform the actions you want! 🚀
4
+ lastUpdated : 30 Sep, 2024
5
+ ---
6
+
7
+ import {ComponentShowcase } from " @/components"
8
+
9
+ <ComponentShowcase name = " textarea-style-default" />
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+
3
+ export default function TextareaStyleDefault ( ) {
4
+ return (
5
+ < textarea
6
+ rows = { 4 }
7
+ placeholder = "type something..."
8
+ className = "px-4 py-2 w-full border-2 border-black shadow-md transition focus:outline-none focus:shadow-xs"
9
+ />
10
+ ) ;
11
+ }
You can’t perform that action at this time.
0 commit comments