Skip to content

Commit

Permalink
docs(Table): fix typo and add missing prop on README (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
chervyakovru authored Jan 22, 2024
1 parent d5bb68b commit 9ae5d01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ Additional functionality is enabled via HOCs:

| Name | Description | Type | Default |
| :---------- | :----------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------: | :---------------------------------------------------------: |
| id | Column ID | `any[]` | |
| id | Column ID | `string` | |
| name | Column name (header) | `string` `(() => React.ReactNode)` | column ID |
| className | CSS-class that will be added to all cells in the column | `string` | |
| placeholder | The stub when there is no data in a cell | `string` `((item: any, index: number) => React.ReactNode)` | `— (—)` |
| template | Cell contents. If you skip a row, the cell contents will be the value of the field with the same name as this row. | `string` `((item: any, index: number) => React.ReactNode)` | The value of the field with the name equal to the column ID |
| align | Content alignment | `"left"` `"center"` `"right"` | |
Expand Down

0 comments on commit 9ae5d01

Please sign in to comment.