-
-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/bottom-nav
- Loading branch information
Showing
14 changed files
with
296 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ node_modules | |
|
||
# misc | ||
.DS_Store | ||
*.backup | ||
*.pem | ||
|
||
# typescript | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
import { Avatar, List, ListItem } from "flowbite-react"; | ||
import { type CodeData } from "~/components/code-demo"; | ||
|
||
const code = ` | ||
"use client"; | ||
import { List, Avatar } from "flowbite-react"; | ||
function Component() { | ||
return ( | ||
<List unstyled className="max-w-md divide-y divide-gray-200 dark:divide-gray-700"> | ||
<ListItem className="pb-3 sm:pb-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-1.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Neil Sims</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$320</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="py-3 sm:py-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-3.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Bonnie Green</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$3467</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="py-3 sm:py-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-2.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Michael Gough</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$67</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="py-3 sm:py-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-5.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Thomas Lean</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$2367</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="pb-0 pt-3 sm:pt-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-4.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Lana Byrd</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$367</div> | ||
</div> | ||
</ListItem> | ||
</List> | ||
); | ||
} | ||
`; | ||
|
||
const codeRSC = ` | ||
import { Avatar, List, ListItem } from "flowbite-react"; | ||
function Component() { | ||
return ( | ||
<List unstyled className="max-w-md divide-y divide-gray-200 dark:divide-gray-700"> | ||
<ListItem className="pb-3 sm:pb-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-1.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Neil Sims</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$320</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="py-3 sm:py-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-3.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Bonnie Green</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$3467</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="py-3 sm:py-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-2.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Michael Gough</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$67</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="py-3 sm:py-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-5.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Thomas Lean</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$2367</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="pb-0 pt-3 sm:pt-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-4.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Lana Byrd</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$367</div> | ||
</div> | ||
</ListItem> | ||
</List> | ||
); | ||
} | ||
`; | ||
|
||
function Component() { | ||
return ( | ||
<List unstyled className="max-w-md divide-y divide-gray-200 dark:divide-gray-700"> | ||
<ListItem className="pb-3 sm:pb-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-1.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Neil Sims</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$320</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="py-3 sm:py-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-3.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Bonnie Green</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$3467</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="py-3 sm:py-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-2.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Michael Gough</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$67</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="py-3 sm:py-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-5.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Thomas Lean</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$2367</div> | ||
</div> | ||
</ListItem> | ||
<ListItem className="pb-0 pt-3 sm:pt-4"> | ||
<div className="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<Avatar img="/images/people/profile-picture-4.jpg" alt="Neil image" rounded size="sm" /> | ||
<div className="min-w-0 flex-1"> | ||
<p className="truncate text-sm font-medium text-gray-900 dark:text-white">Lana Byrd</p> | ||
<p className="truncate text-sm text-gray-500 dark:text-gray-400">email@flowbite.com</p> | ||
</div> | ||
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$367</div> | ||
</div> | ||
</ListItem> | ||
</List> | ||
); | ||
} | ||
|
||
export const advanced: CodeData = { | ||
type: "single", | ||
code: [ | ||
{ | ||
fileName: "client", | ||
language: "tsx", | ||
code, | ||
}, | ||
{ | ||
fileName: "server", | ||
language: "tsx", | ||
code: codeRSC, | ||
}, | ||
], | ||
githubSlug: "list/list.advanced.tsx", | ||
component: <Component />, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.