feat(SW-3247): Move Table component to design-system * Move Table component to design-system Approved-by: Bianca Widstam
14 lines
273 B
TypeScript
14 lines
273 B
TypeScript
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
|