Merged in feat/sw-3247-move-table-to-design-system (pull request #2636)
feat(SW-3247): Move Table component to design-system * Move Table component to design-system Approved-by: Bianca Widstam
This commit is contained in:
13
packages/design-system/lib/components/Table/TH.tsx
Normal file
13
packages/design-system/lib/components/Table/TH.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import styles from './table.module.css'
|
||||
|
||||
import type { THeadProps } from './table'
|
||||
|
||||
function TH({ children, width = 'auto', ...props }: THeadProps) {
|
||||
return (
|
||||
<th className={styles.th} style={{ width }} {...props}>
|
||||
{children}
|
||||
</th>
|
||||
)
|
||||
}
|
||||
|
||||
export default TH
|
||||
Reference in New Issue
Block a user