diff --git a/apps/web/src/components/ui/inputs/MentionInput/MentionInput.stories.tsx b/apps/web/src/components/ui/inputs/MentionInput/MentionInput.stories.tsx index 3a934fc4c..9494886e7 100644 --- a/apps/web/src/components/ui/inputs/MentionInput/MentionInput.stories.tsx +++ b/apps/web/src/components/ui/inputs/MentionInput/MentionInput.stories.tsx @@ -207,6 +207,7 @@ const manyCharacters: MentionInputTriggerItem[] = [ }, ], label: 'SpongeBob SquarePants Characters', + className: 'bg-red-100', }, { type: 'separator', diff --git a/apps/web/src/components/ui/inputs/MentionInput/MentionInput.types.ts b/apps/web/src/components/ui/inputs/MentionInput/MentionInput.types.ts index 22c9f3f93..5291b923c 100644 --- a/apps/web/src/components/ui/inputs/MentionInput/MentionInput.types.ts +++ b/apps/web/src/components/ui/inputs/MentionInput/MentionInput.types.ts @@ -46,6 +46,7 @@ export type MentionInputTriggerGroup = { icon?: React.ReactNode; type: 'group'; disabled?: boolean; + className?: string; }; export type MentionInputTriggerSeparator = { diff --git a/apps/web/src/components/ui/inputs/MentionInput/MentionList/MentionListGroup.tsx b/apps/web/src/components/ui/inputs/MentionInput/MentionList/MentionListGroup.tsx index c6a815346..1051220b8 100644 --- a/apps/web/src/components/ui/inputs/MentionInput/MentionList/MentionListGroup.tsx +++ b/apps/web/src/components/ui/inputs/MentionInput/MentionList/MentionListGroup.tsx @@ -1,3 +1,4 @@ +import { cn } from '@/lib/utils'; import { type MentionListGroupExtended, MentionListSelector } from './MentionListSelector'; export function MentionListGroup({ @@ -7,9 +8,16 @@ export function MentionListGroup({ setSelectedItem, selectedItem, onSelectItem, + type, + className, + disabled, //this is consumed by the children items, we can stylized this if we want }: MentionListGroupExtended) { return ( -
+
{icon && {icon}} {label}