Skip to content

Commit e5bf90b

Browse files
Merge pull request #37 from glints-dev/feat/indextable-sticky-col
IndexTable: TableCell sticky
2 parents 3adcf87 + 5835642 commit e5bf90b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/six-horses-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'polaris-glints': minor
3+
---
4+
5+
IndexTable: TableCell sticky

polaris-react/src/components/IndexTable/components/Cell/Cell.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@ export interface CellProps {
77
children?: ReactNode;
88
className?: string;
99
flush?: boolean;
10+
sticky?: boolean;
1011
}
1112

1213
export const Cell = memo(function Cell({
1314
children,
1415
className,
1516
flush,
17+
sticky,
1618
}: CellProps) {
1719
const cellClassName = classNames(
1820
className,
1921
styles.TableCell,
2022
flush && styles['TableCell-flush'],
23+
sticky && styles['TableCell-sticky'],
2124
);
2225

2326
return <td className={cellClassName}>{children}</td>;

0 commit comments

Comments
 (0)