diff --git a/packages/index.ts b/packages/index.ts index c487ebb17..65d236e44 100644 --- a/packages/index.ts +++ b/packages/index.ts @@ -1,2 +1,3 @@ export { Badge } from "./badge"; export { BadgeButton } from "./badge"; +export { Column } from "./table"; diff --git a/packages/table/README.md b/packages/table/README.md new file mode 100644 index 000000000..eb6ceb36f --- /dev/null +++ b/packages/table/README.md @@ -0,0 +1,3 @@ +# Table Name + +Table documentation diff --git a/packages/table/components/Column.tsx b/packages/table/components/Column.tsx new file mode 100644 index 000000000..401d6f52c --- /dev/null +++ b/packages/table/components/Column.tsx @@ -0,0 +1,16 @@ +import * as React from "react"; +interface IWidthArgs { + width: number; + totalColumns: number; + remainingWidth: number; + currentIndex: number; +} +export interface IColumnProps { + header: string | React.ReactNode; + cellRenderer: (data: any) => React.ReactNode; + width: (args: IWidthArgs) => number; +} + +export class Column extends React.PureComponent {} + +export default Column; diff --git a/packages/table/index.ts b/packages/table/index.ts new file mode 100644 index 000000000..9078798c3 --- /dev/null +++ b/packages/table/index.ts @@ -0,0 +1 @@ +export { default as Column } from "./components/Column";