Skip to content

Commit

Permalink
cell stack
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 24, 2024
1 parent 142417a commit 899a7ec
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/table/CellStack.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { type FC } from "react"
import {
Stack,
TableCell,
type TableCellProps,
type StackProps,
} from "@mui/material"

export interface CellStackProps extends StackProps {
cellProps?: TableCellProps
}

const CellStack: FC<CellStackProps> = ({ cellProps, ...stackProps }) => (
<TableCell {...cellProps}>
<Stack {...stackProps} />
</TableCell>
)

export default CellStack
2 changes: 2 additions & 0 deletions src/components/table/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export { default as Table } from "./Table"
export * from "./Table"
export { default as CellStack } from "./CellStack"
export * from "./CellStack"
export {
TableCell as Cell,
type TableCellProps as CellProps,
Expand Down

0 comments on commit 899a7ec

Please sign in to comment.