mirror of
https://github.com/hex248/sprint.git
synced 2026-02-09 02:33:02 +00:00
hoverEffect configuration on TableRow
This commit is contained in:
@@ -30,12 +30,17 @@ function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {
|
||||
);
|
||||
}
|
||||
|
||||
function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
|
||||
function TableRow({
|
||||
className,
|
||||
hoverEffect = true,
|
||||
...props
|
||||
}: React.ComponentProps<"tr"> & { hoverEffect?: boolean }) {
|
||||
return (
|
||||
<tr
|
||||
data-slot="table-row"
|
||||
className={cn(
|
||||
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
||||
"data-[state=selected]:bg-muted border-b transition-colors",
|
||||
hoverEffect && "hover:bg-muted/40",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user