import React, { forwardRef } from 'react'; export interface TableProps extends React.TableHTMLAttributes { striped?: boolean; condensed?: boolean; } export const Table = forwardRef( ({ striped, condensed, className = '', children, ...rest }, ref) => { const classes = [ 'table', striped && 'table--striped', condensed && 'table--condensed', className ] .filter(Boolean) .join(' '); return ( {children}
); } ); Table.displayName = 'Table';