Skip to content

Commit

Permalink
Fix TableCell type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Dec 2, 2024
1 parent 9b91912 commit d88dc6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/data/TableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import TableContext from './TableContext';
import TableSectionContext from './TableSectionContext';

export type TableCellProps = PresentationalProps &
Omit<JSX.HTMLAttributes<HTMLElement>, 'size'> & {
Omit<JSX.TdHTMLAttributes<HTMLElement>, 'size'> & {
/** Remove default padding, allowing consuming code to control it */
unpadded?: boolean;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ export default function LinkPage() {
<code>HTMLAnchorElement</code>.
</Library.InfoItem>
<Library.InfoItem label="type">
<code>{'preact.JSX.AnchorHTMLAttributes<HTMLAnchorElement>'}</code>
<code>
{'preact.JSX.AnchorHTMLAttributes<HTMLAnchorElement>'}
</code>
</Library.InfoItem>
<Library.InfoItem label="example">
<Library.Code
Expand Down

0 comments on commit d88dc6e

Please sign in to comment.