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.

564 B
Raw Blame
import { Box, type BoxProps, type RecipeVariantProps, useRecipe } from '@chakra-ui/react';
import { rowRecipe } from '@theme/recipes';
import { useMemo } from 'react';

export type RowProps = BoxProps & RecipeVariantProps<typeof rowRecipe>;

/** Use as=button for clickable rows; active selects the themed emphasis level. */
export const Row = ({ active, css, ...rest }: RowProps) => {
  const recipe = useRecipe({ recipe: rowRecipe });
  const rowCss = useMemo(() => [recipe({ active }), css], [active, css, recipe]);

  return <Box css={rowCss} {...rest} />;
};