RowAction() — supabase Function Reference
Architecture documentation for the RowAction() function in UserOverview.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Auth/Users/UserOverview.tsx lines 509–562
export const RowAction = ({
title,
description,
button,
success,
className,
}: {
title: string
description: string
button: {
icon: ReactNode
type?: ComponentProps<typeof Button>['type']
text: string
disabled?: boolean
isLoading?: boolean
onClick: () => void
}
success?: {
title: string
description: string
}
className?: string
}) => {
const disabled = button?.disabled ?? false
return (
<div className={cn(CONTAINER_CLASS, className)}>
<div>
<p>{success ? success.title : title}</p>
<p className="text-xs text-foreground-light">
{success ? success.description : description}
</p>
</div>
<ButtonTooltip
type={button?.type ?? 'default'}
icon={success ? <Check className="text-brand" /> : button.icon}
loading={button.isLoading ?? false}
onClick={button.onClick}
disabled={disabled}
tooltip={{
content: {
side: 'bottom',
text: disabled
? `You need additional permissions to ${button.text.toLowerCase()}`
: undefined,
},
}}
>
{button.text}
</ButtonTooltip>
</div>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free