Home / Function/ InputResetButton() — supabase Function Reference

InputResetButton() — supabase Function Reference

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

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/DiskManagement/ui/InputResetButton.tsx lines 6–30

export function InputResetButton({ isDirty, onClick }: { isDirty: boolean; onClick: () => void }) {
  return (
    <AnimatePresence initial={false}>
      {isDirty && (
        <motion.div
          key="reset-disksize"
          initial={{ opacity: 0, scale: 0.95, x: -2 }}
          animate={{ opacity: 1, scale: 1, x: 0 }}
          exit={{ opacity: 0, scale: 0.95, x: -2 }}
          transition={{ duration: 0.12 }}
        >
          <Button
            htmlType="button"
            type="default"
            size="small"
            className="px-2 text-foreground-light"
            onClick={onClick}
          >
            <RotateCcw className="h-4 w-4" aria-hidden="true" />
          </Button>
        </motion.div>
      )}
    </AnimatePresence>
  )
}

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free