Skip to content

Commit

Permalink
use clip
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneeza committed Feb 3, 2025
1 parent 37d6fa5 commit 5768f7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ All HTML `tr` element props
| Name | Description | Type | Default |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | ------- |
| `cell` | The cell object that is returned when mapping through a row passed from the `useLeafyGreenTable` or `useLeafyGreenVirtualTable` hook. **Required** if using the `useLeafyGreenTable` or `useLeafyGreenVirtualTable` hooks. | `LeafyGreenTableCell<T>` | - |
| `overrideTruncation` | If `shouldTruncation={true}` on `<Table>`, this prop will override truncation for this cell. This is helpful for cells that should never truncate, like buttons or icons since truncation hides hover/focus states. | `boolean` | `false` |
| `overrideTruncation` | If `shouldTruncation={true}` on `<Table>`, this prop will override truncation for this cell. This is helpful for cells that should never truncate, like buttons or icons since truncation clips hover/focus states. | `boolean` | `false` |
\+ other HTML `td` element props.
Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/Cell/Cell.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface BaseCellProps extends ComponentPropsWithRef<'td'> {
contentClassName?: string;

/**
* If shouldTruncation={true} on `Table`, this prop will override truncation for this cell. This is helpful for cells that should never truncate, like buttons or icons since truncation hides hover/focus states.
* If shouldTruncation={true} on `Table`, this prop will override truncation for this cell. This is helpful for cells that should never truncate, like buttons or icons since truncation clips hover/focus states.
*/
overrideTruncation?: boolean;
}
Expand Down

0 comments on commit 5768f7b

Please sign in to comment.