Function
GridCell
({
className,
children,
as: Component = 'div',
colSpan,
isHeader,
...props
})
Source from the content-addressed store, hash-verified
| 50 | isHeader?: boolean; |
| 51 | } |
| 52 | > = ({ |
| 53 | className, |
| 54 | children, |
| 55 | as: Component = 'div', |
| 56 | colSpan, |
| 57 | isHeader, |
| 58 | ...props |
| 59 | }) => ( |
| 60 | <Component |
| 61 | className={cn( |
| 62 | 'flex min-h-12 items-center whitespace-nowrap px-4 align-middle shadow-[0_0_0_0.5px] shadow-border', |
| 63 | isHeader && 'h-10 bg-def-100 font-semibold text-muted-foreground', |
| 64 | colSpan && `col-span-${colSpan}`, |
| 65 | className, |
| 66 | )} |
| 67 | {...props} |
| 68 | > |
| 69 | <div className="truncate w-full">{children}</div> |
| 70 | </Component> |
| 71 | ); |
| 72 | |
| 73 | export const GridRow: React.FC<React.HTMLAttributes<HTMLDivElement>> = ({ |
| 74 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected