+ {items.map((item, index) => (
+
+ {!item.link ? (
+
+ ) : (
+
+ {item.title}
+
+ )}
+
+ ))}
+
+ );
+};
diff --git a/src/pages/ListGroupPage.tsx b/src/pages/ListGroupPage.tsx
new file mode 100644
index 000000000..962412f13
--- /dev/null
+++ b/src/pages/ListGroupPage.tsx
@@ -0,0 +1,87 @@
+import { FC } from 'react';
+import { ListGroup, ListGroupItem } from '../components/ListGroup';
+import { CodeExample, DemoPage } from './DemoPage';
+import { HiCloudDownload, HiInbox, HiOutlineAdjustments, HiUserCircle } from 'react-icons/hi';
+
+const ListGroupPage: FC = () => {
+ const defaultItems: ListGroupItem[] = [
+ {
+ title: 'Profile',
+ },
+ {
+ title: 'Settings',
+ },
+ {
+ title: 'Messages',
+ },
+ {
+ title: 'Download',
+ },
+ ];
+
+ const itemsWithLinks: ListGroupItem[] = [
+ {
+ title: 'Profile',
+ link: '#/list-group',
+ active: true,
+ },
+ {
+ title: 'Settings',
+ link: '#/list-group',
+ },
+ {
+ title: 'Messages',
+ link: '#/list-group',
+ },
+ {
+ title: 'Download',
+ link: '#/list-group',
+ },
+ ];
+
+ const itemsWithIcons: ListGroupItem[] = [
+ {
+ title: 'Profile',
+ icon: HiUserCircle,
+ onClick: () => alert('profile'),
+ },
+ {
+ title: 'Settings',
+ icon: HiOutlineAdjustments,
+ },
+ {
+ title: 'Messages',
+ icon: HiInbox,
+ },
+ {
+ title: 'Download',
+ icon: HiCloudDownload,
+ },
+ ];
+
+ const examples: CodeExample[] = [
+ {
+ title: 'Default list',
+ code: