mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
21 lines
475 B
TypeScript
21 lines
475 B
TypeScript
import { Table } from "@radix-ui/themes";
|
|
import type { RowHeaderCellProps } from "@radix-ui/themes/src/components/table.js";
|
|
|
|
interface Props extends RowHeaderCellProps {
|
|
left?: string | number;
|
|
}
|
|
|
|
export function StickyRowHeaderCell({ style, left = 0, ...props }: Props) {
|
|
return (
|
|
<Table.RowHeaderCell
|
|
style={{
|
|
position: "sticky",
|
|
left,
|
|
backgroundColor: "var(--color-panel)",
|
|
...style,
|
|
}}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|