Skip to content
Merged
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/components/table/table_header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,23 @@
import React, { FunctionComponent } from 'react';
import { CommonProps } from '../common';

export const EuiTableHeader: FunctionComponent<CommonProps> = ({
type Props = CommonProps & {
withInbuiltTag?: boolean;
};
Comment thread
cchaos marked this conversation as resolved.
Outdated

export const EuiTableHeader: FunctionComponent<Props> = ({
children,
className,
withInbuiltTag = true,
...rest
}) => {
return (
<thead className={className} {...rest}>
<tr>{children}</tr>
{withInbuiltTag ? (
<tr>{children}</tr>
) : (
<React.Fragment>{children}</React.Fragment>
)}
Comment thread
cchaos marked this conversation as resolved.
Outdated
</thead>
);
};