summaryrefslogtreecommitdiff
path: root/components/data-table/data-table.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/data-table/data-table.tsx')
-rw-r--r--components/data-table/data-table.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/data-table/data-table.tsx b/components/data-table/data-table.tsx
index 5aeefe21..c241c1ec 100644
--- a/components/data-table/data-table.tsx
+++ b/components/data-table/data-table.tsx
@@ -35,8 +35,9 @@ export function DataTable<TData>({
compact = false, // 기본값은 false로 설정
children,
className,
+ maxHeight,
...props
-}: DataTableProps<TData>) {
+}: DataTableProps<TData> & { maxHeight?: string | number }) {
useAutoSizeColumns(table, autoSizeColumns)
@@ -56,7 +57,7 @@ export function DataTable<TData>({
return (
<div className={cn("w-full space-y-2.5 overflow-auto", className)} {...props}>
{children}
- <div className="max-w-[100vw] overflow-auto" style={{ maxHeight: '35rem' }}>
+ <div className="max-w-[100vw] overflow-auto" style={{ maxHeight: maxHeight || '35rem' }} >
<Table className="[&>thead]:sticky [&>thead]:top-0 [&>thead]:z-10 table-fixed">
{/* 테이블 헤더 */}
<TableHeader>