Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

757 B
Raw Blame
import { Icon } from '@chakra-ui/react';
import { ChevronDownIcon } from 'lucide-react';

const BRIGHTENED_PROPS = { color: 'fg' } as const;

interface TopbarMenuChevronProps {
  /** Take the trigger button's own icon size, for a chevron that is the trigger's only glyph. */
  fillTrigger?: boolean;
}

/** The trigger's dropdown chevron; it brightens with its trigger, which must carry `className="group"`. */
export const TopbarMenuChevron = ({ fillTrigger = false }: TopbarMenuChevronProps) => (
  <Icon
    as={ChevronDownIcon}
    boxSize={fillTrigger ? undefined : '3'}
    color="fg.subtle"
    flexShrink={0}
    transition="color var(--wb-motion-duration-fast) ease"
    _groupHover={BRIGHTENED_PROPS}
    _groupExpanded={BRIGHTENED_PROPS}
  />
);