{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/dropdown-menu-05","type":"registry:component","title":"Dropdown Menu 5","description":"Meeting schedule dropdown with avatars, switch toggles for scheduling control","registryDependencies":["avatar","button","dropdown-menu","switch"],"files":[{"path":"src/registry/new-york/components/dropdown-menu/dropdown-menu-05.tsx","content":"'use client'\n\nimport { useState } from 'react'\n\nimport { Avatar, AvatarFallback, AvatarImage } from '@/registry/new-york/ui/avatar'\nimport { Button } from '@/registry/new-york/ui/button'\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuGroup,\n  DropdownMenuItem,\n  DropdownMenuLabel,\n  DropdownMenuTrigger\n} from '@/registry/new-york/ui/dropdown-menu'\nimport { Switch } from '@/registry/new-york/ui/switch'\n\nconst avatars = [\n  {\n    src: 'https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-3.png',\n    fallback: 'OS',\n    name: 'Olivia Sparks'\n  },\n  {\n    src: 'https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-6.png',\n    fallback: 'HL',\n    name: 'Howard Lloyd'\n  },\n  {\n    src: 'https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-5.png',\n    fallback: 'HR',\n    name: 'Hallie Richards'\n  },\n  {\n    src: 'https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-16.png',\n    fallback: 'JW',\n    name: 'Jenny Wilson'\n  }\n]\n\nconst DropdownMeetingScheduleDemo = () => {\n  const [firstMeeting, setFirstMeeting] = useState(false)\n  const [secondMeeting, setSecondMeeting] = useState(true)\n  const [thirdMeeting, setThirdMeeting] = useState(false)\n  const [forthMeeting, setForthMeeting] = useState(true)\n  const [fifthMeeting, setFifthMeeting] = useState(false)\n\n  return (\n    <DropdownMenu>\n      <DropdownMenuTrigger asChild>\n        <Button variant='outline'>Meetings Schedule</Button>\n      </DropdownMenuTrigger>\n      <DropdownMenuContent className='sm:w-124'>\n        <DropdownMenuLabel>Today&apos;s meetings</DropdownMenuLabel>\n        <DropdownMenuGroup>\n          <DropdownMenuItem className='justify-between gap-3.5' onSelect={event => event.preventDefault()}>\n            <span className='text-popover-foreground font-medium'>08:30</span>\n            <div className='flex flex-1 flex-col'>\n              <span className='text-popover-foreground'>Daily Project Review</span>\n              <span className='text-muted-foreground text-xs'>Team organization</span>\n            </div>\n            <Avatar className='max-sm:hidden'>\n              <AvatarImage src='https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-11.png' alt='Hallie Richards' />\n              <AvatarFallback className='text-xs'>Angel</AvatarFallback>\n            </Avatar>\n            <div className='flex items-center gap-2'>\n              <span className='text-popover-foreground text-sm'>Privacy</span>\n              <Switch id='airplane-mode' checked={firstMeeting} onCheckedChange={setFirstMeeting} />\n            </div>\n          </DropdownMenuItem>\n          <DropdownMenuItem className='justify-between gap-3.5' onSelect={event => event.preventDefault()}>\n            <span className='text-popover-foreground font-medium'>09:00</span>\n            <div className='flex flex-1 flex-col'>\n              <span className='text-popover-foreground'>Sprint Surge</span>\n              <span className='text-muted-foreground text-xs'>Daily Boost for Agile Progress</span>\n            </div>\n            <div className='flex -space-x-3 max-sm:hidden'>\n              {avatars.map((avatar, index) => (\n                <Avatar key={index} className='ring-background ring-2'>\n                  <AvatarImage src={avatar.src} alt={avatar.name} />\n                  <AvatarFallback className='text-xs'>{avatar.fallback}</AvatarFallback>\n                </Avatar>\n              ))}\n            </div>\n            <div className='flex items-center gap-2'>\n              <span className='text-popover-foreground text-sm'>Privacy</span>\n              <Switch id='airplane-mode' checked={secondMeeting} onCheckedChange={setSecondMeeting} />\n            </div>\n          </DropdownMenuItem>\n          <DropdownMenuItem className='justify-between gap-3.5' onSelect={event => event.preventDefault()}>\n            <span className='text-popover-foreground font-medium'>11:45</span>\n            <div className='flex flex-1 flex-col'>\n              <span className='text-popover-foreground'>Project Status Update</span>\n              <span className='text-muted-foreground text-xs'>Progress Overview Update</span>\n            </div>\n            <Avatar className='max-sm:hidden'>\n              <AvatarImage src='https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-12.png' alt='Hallie Richards' />\n              <AvatarFallback className='text-xs'>Angel</AvatarFallback>\n            </Avatar>\n            <div className='flex items-center gap-2'>\n              <span className='text-popover-foreground text-sm'>Privacy</span>\n              <Switch id='airplane-mode' checked={thirdMeeting} onCheckedChange={setThirdMeeting} />\n            </div>\n          </DropdownMenuItem>\n          <DropdownMenuItem className='justify-between gap-3.5' onSelect={event => event.preventDefault()}>\n            <span className='text-popover-foreground font-medium'>06:30</span>\n            <div className='flex flex-1 flex-col'>\n              <span className='text-popover-foreground'>Team Performance</span>\n              <span className='text-muted-foreground text-xs'>Team Metrics Evaluation</span>\n            </div>\n            <div className='flex -space-x-3 max-sm:hidden'>\n              {avatars.map((avatar, index) => (\n                <Avatar key={index} className='ring-background ring-2'>\n                  <AvatarImage src={avatar.src} alt={avatar.name} />\n                  <AvatarFallback className='text-xs'>{avatar.fallback}</AvatarFallback>\n                </Avatar>\n              ))}\n            </div>\n            <div className='flex items-center gap-2'>\n              <span className='text-popover-foreground text-sm'>Privacy</span>\n              <Switch id='airplane-mode' checked={forthMeeting} onCheckedChange={setForthMeeting} />\n            </div>\n          </DropdownMenuItem>\n          <DropdownMenuItem className='justify-between gap-3.5' onSelect={event => event.preventDefault()}>\n            <span className='text-popover-foreground font-medium'>10:50</span>\n            <div className='flex flex-1 flex-col'>\n              <span className='text-popover-foreground'>Stakeholder Feedback</span>\n              <span className='text-muted-foreground text-xs'>Feedback from Stakeholders</span>\n            </div>\n            <Avatar className='max-sm:hidden'>\n              <AvatarImage src='https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-14.png' alt='Hallie Richards' />\n              <AvatarFallback className='text-xs'>Angel</AvatarFallback>\n            </Avatar>\n            <div className='flex items-center gap-2'>\n              <span className='text-popover-foreground text-sm'>Privacy</span>\n              <Switch id='airplane-mode' checked={fifthMeeting} onCheckedChange={setFifthMeeting} />\n            </div>\n          </DropdownMenuItem>\n        </DropdownMenuGroup>\n      </DropdownMenuContent>\n    </DropdownMenu>\n  )\n}\n\nexport default DropdownMeetingScheduleDemo\n","type":"registry:component","target":"components/shadcn-studio/dropdown-menu/dropdown-menu-05.tsx"}]}