feat: sticky compare

This commit is contained in:
TrèsAbhi committed 2024-07-12 19:55:41 -05:00
1 parent f1383c54bc
commit faabea9c06
5 files changed
+43 -43

No files matched your search

+7 -2
View File
@@ -1,15 +1,20 @@
import { Table } from '@radix-ui/themes';
import { ColumnHeaderCellProps } from '@radix-ui/themes/dist/cjs/components/table';
interface StickyColumnHeaderCellProps extends ColumnHeaderCellProps {
top?: number | string;
}
export function StickyColumnHeaderCell({
style,
top = 0,
...props
}: ColumnHeaderCellProps) {
}: StickyColumnHeaderCellProps) {
return (
<Table.ColumnHeaderCell
style={{
position: 'sticky',
top: 0,
top,
background: 'var(--gray-3)',
zIndex: 1,
...style,