Home / Function/ FormMessage() — supabase Function Reference

FormMessage() — supabase Function Reference

Architecture documentation for the FormMessage() function in FormMessage.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/DiskManagement/ui/FormMessage.tsx lines 10–30

function FormMessage({ message = 'error', type, children }: FormMessageProps) {
  return (
    <AnimatePresence>
      {message && (
        <motion.div
          initial={{ opacity: 0, height: 0 }}
          animate={{ opacity: 1, height: 'auto' }}
          exit={{ opacity: 0, height: 0 }}
        >
          <Admonition
            type={type === 'error' ? 'destructive' : 'default'}
            className="mt-2"
            title={message}
          >
            {children}
          </Admonition>
        </motion.div>
      )}
    </AnimatePresence>
  )
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free