mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-13 12:46:11 +01:00
17 lines
407 B
TypeScript
17 lines
407 B
TypeScript
import { Table } from "@radix-ui/themes";
|
|
import type { RowHeaderCellProps } from "@radix-ui/themes/src/components/table.js";
|
|
|
|
export function StickyRowHeaderCell({ style, ...props }: RowHeaderCellProps) {
|
|
return (
|
|
<Table.RowHeaderCell
|
|
style={{
|
|
position: "sticky",
|
|
left: 0,
|
|
backgroundColor: "var(--color-panel)",
|
|
...style,
|
|
}}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|