Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added props table #258

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"framer-motion": "^11.11.9",
"gsap": "^3.12.5",
"lucide-react": "^0.408.0",
"my-typescript-app": "file:",
"pixel-retroui": "^1.0.61",
"react": "^18.3.1",
"react-components": "^0.5.1",
Expand Down
37 changes: 37 additions & 0 deletions src/components/AccordionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,43 @@ const AccordionDetails: React.FC = () => {
/>
</div>
</div>

{/* Props */}
<section
className={`${getGlassyClasses()} p-6 mb-14 text-white relative z-10`}
>
<h2 className='text-3xl font-bold mb-4 text-gray-100'>Props</h2>
<div className='overflow-x-auto'>
<table className='w-full'>
<thead>
<tr className='bg-white bg-opacity-20'>
<th className='text-left p-2 text-gray-100'>Prop</th>
<th className='text-left p-2 text-gray-100'>Type</th>
<th className='text-left p-2 text-gray-100'>Default</th>
<th className='text-left p-2 text-gray-100'>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td className='p-2 text-gray-200'>title</td>
<td className='p-2 text-gray-200'>string</td>
<td className='p-2 text-gray-200'>''</td>
<td className='p-2 text-gray-200'>
Title of the accordian
</td>
</tr>
<tr className='bg-white bg-opacity-10'>
<td className='p-2 text-gray-200'>content</td>
<td className='p-2 text-gray-200'>string</td>
<td className='p-2 text-gray-200'>''</td>
<td className='p-2 text-gray-200'>
Content to be shown in the accordian
</td>
</tr>
</tbody>
</table>
</div>
</section>
</div>
</div>
</div>
Expand Down
34 changes: 18 additions & 16 deletions src/components/CardDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,30 +228,32 @@ function Example() {
<table className='w-full'>
<thead>
<tr className='bg-white bg-opacity-20'>
<th className='text-left p-2'>Prop</th>
<th className='text-left p-2'>Type</th>
<th className='text-left p-2'>Default</th>
<th className='text-left p-2'>Description</th>
<th className='text-left p-2 text-gray-100'>Prop</th>
<th className='text-left p-2 text-gray-100'>Type</th>
<th className='text-left p-2 text-gray-100'>Default</th>
<th className='text-left p-2 text-gray-100'>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td className='p-2'>className</td>
<td className='p-2'>string</td>
<td className='p-2'>''</td>
<td className='p-2'>Additional CSS classes</td>
<td className='p-2 text-gray-200'>className</td>
<td className='p-2 text-gray-200'>string</td>
<td className='p-2 text-gray-200'>''</td>
<td className='p-2 text-gray-200'>Additional CSS classes</td>
</tr>
<tr className='bg-white bg-opacity-10'>
<td className='p-2'>style</td>
<td className='p-2'>object</td>
<td className='p-2'>{'{}'}</td>
<td className='p-2'>Inline styles for the card</td>
<td className='p-2 text-gray-200'>style</td>
<td className='p-2 text-gray-200'>object</td>
<td className='p-2 text-gray-200'>{'{}'}</td>
<td className='p-2 text-gray-200'>
Inline styles for the card
</td>
</tr>
<tr>
<td className='p-2'>children</td>
<td className='p-2'>ReactNode</td>
<td className='p-2'>-</td>
<td className='p-2'>Card content</td>
<td className='p-2 text-gray-200'>children</td>
<td className='p-2 text-gray-200'>ReactNode</td>
<td className='p-2 text-gray-200'>-</td>
<td className='p-2 text-gray-200'>Card content</td>
</tr>
</tbody>
</table>
Expand Down
53 changes: 53 additions & 0 deletions src/components/ContactUsDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,59 @@ const ContactUsDetailsPage: React.FC = () => {
</div>
</div>
</div>

{/* Props */}
<section
className={`${getGlassyClasses()} p-6 mb-14 text-white relative z-10`}
>
<h2 className='text-3xl font-bold mb-4 text-gray-100'>Props</h2>
<div className='overflow-x-auto'>
<table className='w-full'>
<thead>
<tr className='bg-white bg-opacity-20'>
<th className='text-left p-2 text-gray-100'>Prop</th>
<th className='text-left p-2 text-gray-100'>Type</th>
<th className='text-left p-2 text-gray-100'>Default</th>
<th className='text-left p-2 text-gray-100'>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td className='p-2 text-gray-200'>name</td>
<td className='p-2 text-gray-200'>string</td>
<td className='p-2 text-gray-200'>''</td>
<td className='p-2 text-gray-200'>
The full name of the user.
</td>
</tr>
<tr className='bg-white bg-opacity-10'>
<td className='p-2 text-gray-200'>phone</td>
<td className='p-2 text-gray-200'>string</td>
<td className='p-2 text-gray-200'>''</td>
<td className='p-2 text-gray-200'>
The user's contact number.
</td>
</tr>
<tr>
<td className='p-2 text-gray-200'>email</td>
<td className='p-2 text-gray-200'>string</td>
<td className='p-2 text-gray-200'>''</td>
<td className='p-2 text-gray-200'>
The email address of the user.
</td>
</tr>
<tr className='bg-white bg-opacity-10'>
<td className='p-2 text-gray-200'>message</td>
<td className='p-2 text-gray-200'>string</td>
<td className='p-2 text-gray-200'>''</td>
<td className='p-2 text-gray-200'>
The message content that the user wishes to send.
</td>
</tr>
</tbody>
</table>
</div>
</section>
</div>
</div>
);
Expand Down
35 changes: 35 additions & 0 deletions src/components/DropdowndetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,41 @@ const DropdownMenuDetailsPage: React.FC = () => {
<CopyButton text={dropdownExampleCode} codeKey='dropdownExample' />
</div>
</div>

{/* Props */}
<section
className={`${getGlassyClasses()} p-6 mb-14 text-white relative z-10`}
>
<h2 className='text-3xl font-bold mb-4 text-gray-100'>Props</h2>
<div className='overflow-x-auto'>
<table className='w-full'>
<thead>
<tr className='bg-white bg-opacity-20'>
<th className='text-left p-2 text-gray-100'>Prop</th>
<th className='text-left p-2 text-gray-100'>Type</th>
<th className='text-left p-2 text-gray-100'>Default</th>
<th className='text-left p-2 text-gray-100'>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td className='p-2 text-gray-200'>options</td>
<td className='p-2 text-gray-200'>array</td>
<td className='p-2 text-gray-200'>[ ]</td>
<td className='p-2 text-gray-200'>Items in the dropdown</td>
</tr>
<tr className='bg-white bg-opacity-10'>
<td className='p-2 text-gray-200'>onSelect</td>
<td className='p-2 text-gray-200'>function</td>
<td className='p-2 text-gray-200'>-</td>
<td className='p-2 text-gray-200'>
Task to do after selecting the option
</td>
</tr>
</tbody>
</table>
</div>
</section>
</div>
</div>
);
Expand Down
2 changes: 2 additions & 0 deletions src/components/GlassyUIComponentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,5 @@ const GlassyUIComponentsPage: React.FC = () => {
};

export default GlassyUIComponentsPage;

// dropdown menu, accordian, contact us,