diff --git a/src/components/section/SectionItem/SectionListItem.tsx b/src/components/section/SectionItem/SectionListItem.tsx
index 42cfd16a..96d7dcde 100644
--- a/src/components/section/SectionItem/SectionListItem.tsx
+++ b/src/components/section/SectionItem/SectionListItem.tsx
@@ -22,6 +22,18 @@ export function SectionListItem({ className, children }: SectionListItemProps) {
)
}
+function SectionListItemIcon() {
+ const { section } = useTheme()
+
+ return (
+
+ )
+}
+
export type SectionListItemButtonProps = ClassNameProps & {
/**
* On click handler for the button.
@@ -44,21 +56,15 @@ export const SectionListItemButton = forwardRef<
)
})
@@ -80,8 +86,8 @@ export const SectionListItemLink = forwardRef<
return (
{children}
- {withIcon && (
-
- )}
+ {withIcon && }
)
})
diff --git a/src/components/section/theme.ts b/src/components/section/theme.ts
index 464e1325..05d7eea5 100644
--- a/src/components/section/theme.ts
+++ b/src/components/section/theme.ts
@@ -38,13 +38,10 @@ export default {
base: 'flex flex-shrink-0',
},
},
- listItemButton: {
+ listItemButtonLink: {
base: 'block w-full focus:outline-neutral-800 justify-between space-x-4 hover:bg-neutral-100 active:bg-neutral-100',
icon: 'fill-current',
},
- listItemLink: {
- base: 'block focus:outline-neutral-800 justify-between space-x-4 hover:bg-neutral-100 active:bg-neutral-100',
- },
subsectionTitle: {
base: 'bg-neutral-100 px-4 md:px-6 py-1 border-b border-t first:border-t-none border-neutral-200 text-sm text-neutral-600',
},
diff --git a/src/examples/List.stories.tsx b/src/examples/List.stories.tsx
index 228f6e53..b341fa62 100644
--- a/src/examples/List.stories.tsx
+++ b/src/examples/List.stories.tsx
@@ -28,6 +28,7 @@ import {
Tone,
Option,
SectionListItemButtonProps,
+ SectionListItemLink,
} from '../components'
import { SearchField } from '../components/form/SearchField'
import { useFilter } from '../components/util/useFilter'
@@ -86,15 +87,25 @@ const List = ({
/>
) : (
- {content.map((item) => (
-
- {`${item.name} (${item.role} - ${item.department})`}
-
- ))}
+ {content.map((item, index) =>
+ index % 2 === 0 ? (
+
+ {`Button ${item.name} (${item.role} - ${item.department})`}
+
+ ) : (
+
+ {`Link ${item.name} (${item.role} - ${item.department})`}
+
+ ),
+ )}
)}